From b77abeac41a4b030caac4388a94c4791213b55b2 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 30 Oct 2023 07:24:45 +0000 Subject: [PATCH] CodeGen from PR 3676 in openapi-env-test/azure-rest-api-specs Merge 8c7c5dc99229b065dc1e908c3d5c6c7904262c1e into 4068c6e2bf5a08621f310bc7c1ebd7f63b0b3649 --- common/config/rush/pnpm-lock.yaml | 89 +- .../arm-servicelinker/CHANGELOG.md | 24 +- sdk/servicelinker/arm-servicelinker/LICENSE | 2 +- sdk/servicelinker/arm-servicelinker/README.md | 2 +- .../arm-servicelinker/_meta.json | 12 +- .../arm-servicelinker/package.json | 22 +- .../review/arm-servicelinker.api.md | 60 +- .../arm-servicelinker/src/lroImpl.ts | 54 +- .../arm-servicelinker/src/models/index.ts | 619 ++++++------- .../arm-servicelinker/src/models/mappers.ts | 830 +++++++++--------- .../src/models/parameters.ts | 26 - .../src/operations/linker.ts | 568 +----------- .../src/operationsInterfaces/linker.ts | 127 +-- .../src/serviceLinkerManagementClient.ts | 2 +- .../arm-servicelinker/tsconfig.json | 10 +- 15 files changed, 842 insertions(+), 1605 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index aafea9ae8794..7cc125259f3d 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2163,6 +2163,7 @@ packages: /@sinonjs/fake-timers/10.2.0: resolution: {integrity: sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg==} + deprecated: Use version 10.1.0. Version 10.2.0 has potential breaking issues dependencies: '@sinonjs/commons': 3.0.0 dev: false @@ -2245,7 +2246,7 @@ packages: resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==} dependencies: '@types/connect': 3.4.35 - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/chai-as-promised/7.1.5: @@ -2267,7 +2268,7 @@ packages: /@types/connect/3.4.35: resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/cookie/0.4.1: @@ -2277,7 +2278,7 @@ packages: /@types/cors/2.8.13: resolution: {integrity: sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/debug/4.1.8: @@ -2289,7 +2290,7 @@ packages: /@types/decompress/4.2.4: resolution: {integrity: sha512-/C8kTMRTNiNuWGl5nEyKbPiMv6HA+0RbEXzFhFBEzASM6+oa4tJro9b8nj7eRlOFfuLdzUU+DS/GPDlvvzMOhA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/eslint/8.4.10: @@ -2310,7 +2311,7 @@ packages: /@types/express-serve-static-core/4.17.35: resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 '@types/qs': 6.9.7 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -2328,13 +2329,13 @@ packages: /@types/fs-extra/8.1.2: resolution: {integrity: sha512-SvSrYXfWSc7R4eqnOzbQF4TZmfpNSM9FrSWLU3EUnWBuyZqNBOrv1B1JA3byUDPUl9z4Ab3jeZG2eDdySlgNMg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/fs-extra/9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/inquirer/8.2.6: @@ -2347,7 +2348,7 @@ packages: /@types/is-buffer/2.0.0: resolution: {integrity: sha512-0f7N/e3BAz32qDYvgB4d2cqv1DqUwvGxHkXsrucICn8la1Vb6Yl6Eg8mPScGwUiqHJeE7diXlzaK+QMA9m4Gxw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/json-schema/7.0.12: @@ -2361,13 +2362,13 @@ packages: /@types/jsonwebtoken/9.0.2: resolution: {integrity: sha512-drE6uz7QBKq1fYqqoFKTDRdFCPHd5TCub75BM+D+cMx7NU9hUz7SESLfC2fSCXVFMO5Yj8sOWHuGqPgjc+fz0Q==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/jws/3.2.5: resolution: {integrity: sha512-xGTxZH34xOryaTN8CMsvhh9lfNqFuHiMoRvsLYWQdBJHqiECyfInXVl2eK8Jz2emxZWMIn5RBlmr3oDVPeWujw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/linkify-it/3.0.2: @@ -2418,13 +2419,13 @@ packages: /@types/mysql/2.15.19: resolution: {integrity: sha512-wSRg2QZv14CWcZXkgdvHbbV2ACufNy5EgI8mBBxnJIptchv7DBy/h53VMa2jDhyo0C9MO4iowE6z9vF8Ja1DkQ==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/node-fetch/2.6.4: resolution: {integrity: sha512-1ZX9fcN4Rvkvgv4E6PAY5WXUFWFcRWxZa3EW83UjycOB9ljJCedb2CupIP4RZMEwF/M3eTcCihbBRgwtGbg5Rg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 form-data: 3.0.1 dev: false @@ -2449,7 +2450,7 @@ packages: /@types/pg/8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -2477,7 +2478,7 @@ packages: /@types/resolve/1.17.1: resolution: {integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/semaphore/1.1.1: @@ -2496,14 +2497,14 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/serve-static/1.15.1: resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==} dependencies: '@types/mime': 3.0.1 - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/sinon/10.0.15: @@ -2525,13 +2526,13 @@ packages: /@types/stoppable/1.1.1: resolution: {integrity: sha512-b8N+fCADRIYYrGZOcmOR8ZNBOqhktWTB/bMUl5LvGtT201QKJZOOH5UsFyI3qtteM6ZAJbJqZoBcLqqxKIwjhw==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/through/0.0.30: resolution: {integrity: sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/tough-cookie/4.0.2: @@ -2545,7 +2546,7 @@ packages: /@types/tunnel/0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/underscore/1.11.5: @@ -2563,19 +2564,19 @@ packages: /@types/ws/7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/ws/8.5.4: resolution: {integrity: sha512-zdQDHKUgcX/zBc4GrwsE/7dVdAD8JR4EuiAXiiUhhfyIJXXb2+PrGshFyeXWQPMmmZ2XxgaqclgpIC7eTXc1mg==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/xml2js/0.4.11: resolution: {integrity: sha512-JdigeAKmCyoJUiQljjr7tQG3if9NkqGUgwEUqBvV0N7LM4HyQk7UXCnusRa1lnvXAEYJ8mw8GtZWioagNztOwA==} dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false /@types/yargs-parser/21.0.0: @@ -2592,7 +2593,7 @@ packages: resolution: {integrity: sha512-Cn6WYCm0tXv8p6k+A8PvbDG763EDpBoTzHdA+Q/MF6H3sapGjCm9NzoaJncJS9tUKSuCoDs9XHxYYsQDgxR6kw==} requiresBuild: true dependencies: - '@types/node': 14.18.48 + '@types/node': 16.18.34 dev: false optional: true @@ -3601,7 +3602,7 @@ packages: resolution: {integrity: sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==} deprecated: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) dependencies: - ms: 2.1.1 + ms: 2.1.3 dev: false /debug/3.2.7: @@ -3832,7 +3833,7 @@ packages: dependencies: semver: 7.5.1 shelljs: 0.8.5 - typescript: 5.2.0-dev.20230605 + typescript: 5.3.0-dev.20231030 dev: false /ecdsa-sig-formatter/1.0.11: @@ -3883,7 +3884,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.13 - '@types/node': 14.18.48 + '@types/node': 16.18.34 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -4807,7 +4808,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: false @@ -7115,7 +7116,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 14.18.48 + '@types/node': 16.18.34 long: 5.2.3 dev: false @@ -7732,6 +7733,7 @@ packages: /sinon/12.0.1: resolution: {integrity: sha512-iGu29Xhym33ydkAT+aNQFBINakjq69kKO6ByPvTsm3yyIACfyQttRTP03aBP/I8GfhFmLzrnKwNNkr0ORb1udg==} + deprecated: 16.1.1 dependencies: '@sinonjs/commons': 1.8.6 '@sinonjs/fake-timers': 8.1.0 @@ -7743,6 +7745,7 @@ packages: /sinon/9.2.4: resolution: {integrity: sha512-zljcULZQsJxVra28qIAL6ow1Z9tpattkCTEJR4RBP3TGc00FcttsP5pK284Nas5WjMZU5Yzy3kAIp3B3KRf5Yg==} + deprecated: 16.1.1 dependencies: '@sinonjs/commons': 1.8.6 '@sinonjs/fake-timers': 6.0.1 @@ -8189,7 +8192,7 @@ packages: code-block-writer: 12.0.0 dev: false - /ts-node/10.9.1_b5wb2ksfhxvmazt2irtoc64fxm: + /ts-node/10.9.1_ey2uhdrdccsiq246lfbonlgpwm: resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -8215,7 +8218,7 @@ packages: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.1.3 + typescript: 5.2.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 dev: false @@ -8413,20 +8416,26 @@ packages: hasBin: true dev: false + /typescript/4.8.4: + resolution: {integrity: sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==} + engines: {node: '>=4.2.0'} + hasBin: true + dev: false + /typescript/5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'} hasBin: true dev: false - /typescript/5.1.3: - resolution: {integrity: sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==} + /typescript/5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true dev: false - /typescript/5.2.0-dev.20230605: - resolution: {integrity: sha512-xMeI7pFrOfxZTt1m4a2txN1E2Qh9IzLT9LNdc0DlEwJJKXjajj5j/nFLwWOUEnaFZBT6v35jlgLogG5HuSxUyA==} + /typescript/5.3.0-dev.20231030: + resolution: {integrity: sha512-azWrF0lAiu8cBHNr6yq3RDkU/DtQScvT48ea3Ngq6oXJ/GPO0n96wCFSRQA5UbZlVVf3fAAqsUfvOdohRbrPVg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -14557,7 +14566,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-sE0eh3bD946AOA5ZtCItyyPdvgW+VBzJ3/Gt9lQldL7XW0BXX4WeHtteYg9lN3GIBnJ9QjGnIX/82zKnn+wbTQ==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-vfm7auNi9otzrf0jslrfHf4JlscbBO2Sxv9/2ayeKTA/NcaKx1GAvGDqpFx7DoNsMC61/99/cgm6YZ9KWyOlZQ==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -14572,13 +14581,13 @@ packages: chai: 4.3.7 cross-env: 7.0.3 dotenv: 16.1.4 - mkdirp: 1.0.4 + mkdirp: 2.1.6 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_6vxqa4pl2c5hli7lcaemfsm5je tslib: 2.5.3 - typescript: 5.0.4 + typescript: 4.8.4 uglify-js: 3.17.4 transitivePeerDependencies: - supports-color @@ -16689,7 +16698,7 @@ packages: name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: - '@_ts/max': /typescript/5.1.3 + '@_ts/max': /typescript/5.2.2 '@_ts/min': /typescript/4.2.4 '@microsoft/api-extractor': 7.35.1_@types+node@14.18.48 '@rollup/plugin-commonjs': 24.1.0_rollup@2.79.1 @@ -16732,7 +16741,7 @@ packages: rollup-plugin-visualizer: 5.9.0_rollup@2.79.1 semver: 7.5.1 ts-morph: 18.0.0 - ts-node: 10.9.1_b5wb2ksfhxvmazt2irtoc64fxm + ts-node: 10.9.1_ey2uhdrdccsiq246lfbonlgpwm tslib: 2.5.3 typescript: 5.0.4 yaml: 2.3.1 @@ -18026,7 +18035,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-UTfrrypI9UvxkoW1o6zxcIzxJSxXeam5tEzF35ZFa+bJnIOgH45sUvzT2p4n/YA2/blGPYogtQPT81RcWiHgBg==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-bE/JTLjfj8HMmBTGfK1pTs4Kfsy9GJwXtrvbOjgDH8pYIvzzJ3LjUNRGjVhb3r+FOPkBRbb9fxniy5U3mmmLng==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: diff --git a/sdk/servicelinker/arm-servicelinker/CHANGELOG.md b/sdk/servicelinker/arm-servicelinker/CHANGELOG.md index a4650bc4b95f..8ad7d60120cd 100644 --- a/sdk/servicelinker/arm-servicelinker/CHANGELOG.md +++ b/sdk/servicelinker/arm-servicelinker/CHANGELOG.md @@ -1,15 +1,23 @@ # Release History + +## 3.0.0 (2023-10-30) + +**Features** -## 2.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Enum KnownClientType has a new value KafkaSpringBoot -### Other Changes +**Breaking Changes** + - Removed operation Linker.beginCreateOrUpdate + - Removed operation Linker.beginCreateOrUpdateAndWait + - Removed operation Linker.beginDelete + - Removed operation Linker.beginDeleteAndWait + - Removed operation Linker.beginUpdate + - Removed operation Linker.beginUpdateAndWait + - Removed operation Linker.get + - Removed operation Linker.list + + ## 2.1.0 (2022-12-16) **Features** diff --git a/sdk/servicelinker/arm-servicelinker/LICENSE b/sdk/servicelinker/arm-servicelinker/LICENSE index 5d1d36e0af80..3a1d9b6f24f7 100644 --- a/sdk/servicelinker/arm-servicelinker/LICENSE +++ b/sdk/servicelinker/arm-servicelinker/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2022 Microsoft +Copyright (c) 2023 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/servicelinker/arm-servicelinker/README.md b/sdk/servicelinker/arm-servicelinker/README.md index bd1e958daa3d..2438582b5095 100644 --- a/sdk/servicelinker/arm-servicelinker/README.md +++ b/sdk/servicelinker/arm-servicelinker/README.md @@ -2,7 +2,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ServiceLinkerManagement client. -Microsoft.ServiceLinker provider +Microsoft.ServiceLinker provider asd [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicelinker/arm-servicelinker) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-servicelinker) | diff --git a/sdk/servicelinker/arm-servicelinker/_meta.json b/sdk/servicelinker/arm-servicelinker/_meta.json index a88461956128..7e4a567076a5 100644 --- a/sdk/servicelinker/arm-servicelinker/_meta.json +++ b/sdk/servicelinker/arm-servicelinker/_meta.json @@ -1,8 +1,8 @@ { - "commit": "eeb81e9f8a12ad473e8df3a71f2d58682741bcd2", - "readme": "specification\\servicelinker\\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\\servicelinker\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.5.20221215.1" + "commit": "045a4e0ffcb1e9dc2daed00975638b181a647c34", + "readme": "specification/servicelinker/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/servicelinker/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", + "repository_url": "https://github.com/openapi-env-test/azure-rest-api-specs.git", + "release_tool": "@marygao/js-sdk-release-tools@2.8.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/servicelinker/arm-servicelinker/package.json b/sdk/servicelinker/arm-servicelinker/package.json index a69745ef85f8..0529b2ab43c3 100644 --- a/sdk/servicelinker/arm-servicelinker/package.json +++ b/sdk/servicelinker/arm-servicelinker/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ServiceLinkerManagementClient.", - "version": "2.1.1", + "version": "3.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,10 +33,10 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", - "typescript": "~5.0.0", + "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "dotenv": "^16.0.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicelinker/arm-servicelinker", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicelinker?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicelinker/arm-servicelinker" +} \ No newline at end of file diff --git a/sdk/servicelinker/arm-servicelinker/review/arm-servicelinker.api.md b/sdk/servicelinker/arm-servicelinker/review/arm-servicelinker.api.md index 0d160013a145..e8880eab3c35 100644 --- a/sdk/servicelinker/arm-servicelinker/review/arm-servicelinker.api.md +++ b/sdk/servicelinker/arm-servicelinker/review/arm-servicelinker.api.md @@ -6,9 +6,9 @@ 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 ActionType = string; @@ -127,6 +127,7 @@ export enum KnownClientType { Dotnet = "dotnet", Go = "go", Java = "java", + KafkaSpringBoot = "kafka-springBoot", Nodejs = "nodejs", None = "none", Php = "php", @@ -179,41 +180,11 @@ export enum KnownVNetSolutionType { // @public export interface Linker { - beginCreateOrUpdate(resourceUri: string, linkerName: string, parameters: LinkerResource, options?: LinkerCreateOrUpdateOptionalParams): Promise, LinkerCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceUri: string, linkerName: string, parameters: LinkerResource, options?: LinkerCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceUri: string, linkerName: string, options?: LinkerDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceUri: string, linkerName: string, options?: LinkerDeleteOptionalParams): Promise; - beginUpdate(resourceUri: string, linkerName: string, parameters: LinkerPatch, options?: LinkerUpdateOptionalParams): Promise, LinkerUpdateResponse>>; - beginUpdateAndWait(resourceUri: string, linkerName: string, parameters: LinkerPatch, options?: LinkerUpdateOptionalParams): Promise; - beginValidate(resourceUri: string, linkerName: string, options?: LinkerValidateOptionalParams): Promise, LinkerValidateResponse>>; + beginValidate(resourceUri: string, linkerName: string, options?: LinkerValidateOptionalParams): Promise, LinkerValidateResponse>>; beginValidateAndWait(resourceUri: string, linkerName: string, options?: LinkerValidateOptionalParams): Promise; - get(resourceUri: string, linkerName: string, options?: LinkerGetOptionalParams): Promise; - list(resourceUri: string, options?: LinkerListOptionalParams): PagedAsyncIterableIterator; listConfigurations(resourceUri: string, linkerName: string, options?: LinkerListConfigurationsOptionalParams): Promise; } -// @public -export interface LinkerCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type LinkerCreateOrUpdateResponse = LinkerResource; - -// @public -export interface LinkerDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface LinkerGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LinkerGetResponse = LinkerResource; - // @public export interface LinkerList { nextLink?: string; @@ -227,20 +198,6 @@ export interface LinkerListConfigurationsOptionalParams extends coreClient.Opera // @public export type LinkerListConfigurationsResponse = SourceConfigurationResult; -// @public -export interface LinkerListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LinkerListNextResponse = LinkerList; - -// @public -export interface LinkerListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type LinkerListResponse = LinkerList; - // @public export interface LinkerPatch { authInfo?: AuthInfoBaseUnion; @@ -264,15 +221,6 @@ export interface LinkerResource extends ProxyResource { vNetSolution?: VNetSolution; } -// @public -export interface LinkerUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type LinkerUpdateResponse = LinkerResource; - // @public export interface LinkerValidateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/servicelinker/arm-servicelinker/src/lroImpl.ts b/sdk/servicelinker/arm-servicelinker/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/servicelinker/arm-servicelinker/src/lroImpl.ts +++ b/sdk/servicelinker/arm-servicelinker/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/servicelinker/arm-servicelinker/src/models/index.ts b/sdk/servicelinker/arm-servicelinker/src/models/index.ts index 709e0b5102bc..4c4566d4bf05 100644 --- a/sdk/servicelinker/arm-servicelinker/src/models/index.ts +++ b/sdk/servicelinker/arm-servicelinker/src/models/index.ts @@ -13,13 +13,6 @@ export type TargetServiceBaseUnion = | AzureResource | ConfluentBootstrapServer | ConfluentSchemaRegistry; -export type AuthInfoBaseUnion = - | AuthInfoBase - | SecretAuthInfo - | UserAssignedIdentityAuthInfo - | SystemAssignedIdentityAuthInfo - | ServicePrincipalSecretAuthInfo - | ServicePrincipalCertificateAuthInfo; export type AzureResourcePropertiesBaseUnion = | AzureResourcePropertiesBase | AzureKeyVaultProperties; @@ -28,80 +21,50 @@ export type SecretInfoBaseUnion = | ValueSecretInfo | KeyVaultSecretReferenceSecretInfo | KeyVaultSecretUriSecretInfo; +export type AuthInfoBaseUnion = + | AuthInfoBase + | SecretAuthInfo + | UserAssignedIdentityAuthInfo + | SystemAssignedIdentityAuthInfo + | ServicePrincipalSecretAuthInfo + | ServicePrincipalCertificateAuthInfo; -/** The list of Linker. */ -export interface LinkerList { - /** The link used to get the next page of Linker list. */ - nextLink?: string; - /** The list of Linkers. */ - value?: LinkerResource[]; -} - -/** The target service properties */ -export interface TargetServiceBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: - | "AzureResource" - | "ConfluentBootstrapServer" - | "ConfluentSchemaRegistry"; -} - -/** The authentication info */ -export interface AuthInfoBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: - | "secret" - | "userAssignedIdentity" - | "systemAssignedIdentity" - | "servicePrincipalSecret" - | "servicePrincipalCertificate"; -} - -/** The VNet solution for linker */ -export interface VNetSolution { - /** Type of VNet solution. */ - type?: VNetSolutionType; -} - -/** An option to store secret value in secure place */ -export interface SecretStore { - /** The key vault id to store secret */ - keyVaultId?: 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 validation operation result for a linker. */ +export interface ValidateOperationResult { + /** Validated linker id. */ + resourceId?: string; + /** Validation operation status. */ + status?: string; + /** The linker name. */ + linkerName?: string; + /** A boolean value indicating whether the connection is available or not */ + isConnectionAvailable?: boolean; + /** The start time of the validation report. */ + reportStartTimeUtc?: Date; + /** The end time of the validation report. */ + reportEndTimeUtc?: Date; + /** The resource id of the linker source application. */ + sourceId?: string; + /** The resource Id of target service. */ + targetId?: string; + /** The authentication type. */ + authType?: AuthType; + /** The detail of validation result */ + validationDetail?: ValidationResultItem[]; } -/** 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; +/** The validation item for a linker. */ +export interface ValidationResultItem { + /** The validation item name. */ + name?: string; + /** The display name of validation item */ + description?: string; + /** The result of validation */ + result?: ValidationResultStatus; + /** The error message of validation result */ + errorMessage?: string; + /** The error code of validation result */ + errorCode?: 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.). */ @@ -153,65 +116,6 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** A linker to be updated. */ -export interface LinkerPatch { - /** The target service properties */ - targetService?: TargetServiceBaseUnion; - /** The authentication type. */ - authInfo?: AuthInfoBaseUnion; - /** The application client type */ - clientType?: ClientType; - /** - * The provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; - /** The VNet solution. */ - vNetSolution?: VNetSolution; - /** An option to store secret value in secure place */ - secretStore?: SecretStore; - /** connection scope in source service. */ - scope?: string; -} - -/** The validation operation result for a linker. */ -export interface ValidateOperationResult { - /** Validated linker id. */ - resourceId?: string; - /** Validation operation status. */ - status?: string; - /** The linker name. */ - linkerName?: string; - /** A boolean value indicating whether the connection is available or not */ - isConnectionAvailable?: boolean; - /** The start time of the validation report. */ - reportStartTimeUtc?: Date; - /** The end time of the validation report. */ - reportEndTimeUtc?: Date; - /** The resource id of the linker source application. */ - sourceId?: string; - /** The resource Id of target service. */ - targetId?: string; - /** The authentication type. */ - authType?: AuthType; - /** The detail of validation result */ - validationDetail?: ValidationResultItem[]; -} - -/** The validation item for a linker. */ -export interface ValidationResultItem { - /** The validation item name. */ - name?: string; - /** The display name of validation item */ - description?: string; - /** The result of validation */ - result?: ValidationResultStatus; - /** The error message of validation result */ - errorMessage?: string; - /** The error code of validation result */ - errorCode?: string; -} - /** Configurations for source resource, include appSettings, connectionString and serviceBindings */ export interface SourceConfigurationResult { /** The configuration properties for source resource. */ @@ -290,6 +194,15 @@ export interface OperationDisplay { readonly description?: string; } +/** The target service properties */ +export interface TargetServiceBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: + | "AzureResource" + | "ConfluentBootstrapServer" + | "ConfluentSchemaRegistry"; +} + /** The azure resource properties */ export interface AzureResourcePropertiesBase { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -302,6 +215,93 @@ export interface SecretInfoBase { secretType: "rawValue" | "keyVaultSecretReference" | "keyVaultSecretUri"; } +/** The authentication info */ +export interface AuthInfoBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authType: + | "secret" + | "userAssignedIdentity" + | "systemAssignedIdentity" + | "servicePrincipalSecret" + | "servicePrincipalCertificate"; +} + +/** The VNet solution for linker */ +export interface VNetSolution { + /** Type of VNet solution. */ + type?: VNetSolutionType; +} + +/** An option to store secret value in secure place */ +export interface SecretStore { + /** The key vault id to store secret */ + keyVaultId?: 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; +} + +/** 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; +} + +/** A linker to be updated. */ +export interface LinkerPatch { + /** The target service properties */ + targetService?: TargetServiceBaseUnion; + /** The authentication type. */ + authInfo?: AuthInfoBaseUnion; + /** The application client type */ + clientType?: ClientType; + /** + * The provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; + /** The VNet solution. */ + vNetSolution?: VNetSolution; + /** An option to store secret value in secure place */ + secretStore?: SecretStore; + /** connection scope in source service. */ + scope?: string; +} + +/** The list of Linker. */ +export interface LinkerList { + /** The link used to get the next page of Linker list. */ + nextLink?: string; + /** The list of Linkers. */ + value?: LinkerResource[]; +} + /** The azure resource info when target service type is AzureResource */ export interface AzureResource extends TargetServiceBase { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -328,6 +328,40 @@ export interface ConfluentSchemaRegistry extends TargetServiceBase { endpoint?: string; } +/** The resource properties when type is Azure Key Vault */ +export interface AzureKeyVaultProperties extends AzureResourcePropertiesBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "KeyVault"; + /** True if connect via Kubernetes CSI Driver. */ + connectAsKubernetesCsiDriver?: boolean; +} + +/** The secret info when type is rawValue. It's for scenarios that user input the secret. */ +export interface ValueSecretInfo extends SecretInfoBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretType: "rawValue"; + /** The actual value of the secret. */ + value?: string; +} + +/** The secret info when type is keyVaultSecretReference. It's for scenario that user provides a secret stored in user's keyvault and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId. */ +export interface KeyVaultSecretReferenceSecretInfo extends SecretInfoBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretType: "keyVaultSecretReference"; + /** Name of the Key Vault secret. */ + name?: string; + /** Version of the Key Vault secret. */ + version?: string; +} + +/** The secret info when type is keyVaultSecretUri. It's for scenario that user provides a secret stored in user's keyvault and source is Web App, Spring Cloud or Container App. */ +export interface KeyVaultSecretUriSecretInfo extends SecretInfoBase { + /** Polymorphic discriminator, which specifies the different types this object can be */ + secretType: "keyVaultSecretUri"; + /** URI to the keyvault secret */ + value?: string; +} + /** The authentication info when authType is secret */ export interface SecretAuthInfo extends AuthInfoBase { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -361,59 +395,25 @@ export interface ServicePrincipalSecretAuthInfo extends AuthInfoBase { /** ServicePrincipal application clientId for servicePrincipal auth. */ clientId: string; /** Principal Id for servicePrincipal auth. */ - principalId: string; - /** Secret for servicePrincipal auth. */ - secret: string; -} - -/** The authentication info when authType is servicePrincipal certificate */ -export interface ServicePrincipalCertificateAuthInfo extends AuthInfoBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authType: "servicePrincipalCertificate"; - /** Application clientId for servicePrincipal auth. */ - clientId: string; - /** Principal Id for servicePrincipal auth. */ - principalId: string; - /** ServicePrincipal certificate for servicePrincipal auth. */ - certificate: 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 properties when type is Azure Key Vault */ -export interface AzureKeyVaultProperties extends AzureResourcePropertiesBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "KeyVault"; - /** True if connect via Kubernetes CSI Driver. */ - connectAsKubernetesCsiDriver?: boolean; -} - -/** The secret info when type is rawValue. It's for scenarios that user input the secret. */ -export interface ValueSecretInfo extends SecretInfoBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretType: "rawValue"; - /** The actual value of the secret. */ - value?: string; + principalId: string; + /** Secret for servicePrincipal auth. */ + secret: string; } -/** The secret info when type is keyVaultSecretReference. It's for scenario that user provides a secret stored in user's keyvault and source is Azure Kubernetes. The key Vault's resource id is linked to secretStore.keyVaultId. */ -export interface KeyVaultSecretReferenceSecretInfo extends SecretInfoBase { +/** The authentication info when authType is servicePrincipal certificate */ +export interface ServicePrincipalCertificateAuthInfo extends AuthInfoBase { /** Polymorphic discriminator, which specifies the different types this object can be */ - secretType: "keyVaultSecretReference"; - /** Name of the Key Vault secret. */ - name?: string; - /** Version of the Key Vault secret. */ - version?: string; + authType: "servicePrincipalCertificate"; + /** Application clientId for servicePrincipal auth. */ + clientId: string; + /** Principal Id for servicePrincipal auth. */ + principalId: string; + /** ServicePrincipal certificate for servicePrincipal auth. */ + certificate: string; } -/** The secret info when type is keyVaultSecretUri. It's for scenario that user provides a secret stored in user's keyvault and source is Web App, Spring Cloud or Container App. */ -export interface KeyVaultSecretUriSecretInfo extends SecretInfoBase { - /** Polymorphic discriminator, which specifies the different types this object can be */ - secretType: "keyVaultSecretUri"; - /** URI to the keyvault secret */ - value?: 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 {} /** Linker of source and target resource */ export interface LinkerResource extends ProxyResource { @@ -441,27 +441,6 @@ export interface LinkerResource extends ProxyResource { scope?: string; } -/** Known values of {@link TargetServiceType} that the service accepts. */ -export enum KnownTargetServiceType { - /** AzureResource */ - AzureResource = "AzureResource", - /** ConfluentBootstrapServer */ - ConfluentBootstrapServer = "ConfluentBootstrapServer", - /** ConfluentSchemaRegistry */ - ConfluentSchemaRegistry = "ConfluentSchemaRegistry" -} - -/** - * Defines values for TargetServiceType. \ - * {@link KnownTargetServiceType} can be used interchangeably with TargetServiceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureResource** \ - * **ConfluentBootstrapServer** \ - * **ConfluentSchemaRegistry** - */ -export type TargetServiceType = string; - /** Known values of {@link AuthType} that the service accepts. */ export enum KnownAuthType { /** SystemAssignedIdentity */ @@ -489,90 +468,6 @@ export enum KnownAuthType { */ export type AuthType = string; -/** Known values of {@link ClientType} that the service accepts. */ -export enum KnownClientType { - /** None */ - None = "none", - /** Dotnet */ - Dotnet = "dotnet", - /** Java */ - Java = "java", - /** Python */ - Python = "python", - /** Go */ - Go = "go", - /** Php */ - Php = "php", - /** Ruby */ - Ruby = "ruby", - /** Django */ - Django = "django", - /** Nodejs */ - Nodejs = "nodejs", - /** SpringBoot */ - SpringBoot = "springBoot" -} - -/** - * Defines values for ClientType. \ - * {@link KnownClientType} can be used interchangeably with ClientType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **none** \ - * **dotnet** \ - * **java** \ - * **python** \ - * **go** \ - * **php** \ - * **ruby** \ - * **django** \ - * **nodejs** \ - * **springBoot** - */ -export type ClientType = string; - -/** Known values of {@link VNetSolutionType} that the service accepts. */ -export enum KnownVNetSolutionType { - /** ServiceEndpoint */ - ServiceEndpoint = "serviceEndpoint", - /** PrivateLink */ - PrivateLink = "privateLink" -} - -/** - * Defines values for VNetSolutionType. \ - * {@link KnownVNetSolutionType} can be used interchangeably with VNetSolutionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **serviceEndpoint** \ - * **privateLink** - */ -export type VNetSolutionType = 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 ValidationResultStatus} that the service accepts. */ export enum KnownValidationResultStatus { /** Success */ @@ -630,6 +525,27 @@ export enum KnownActionType { */ export type ActionType = string; +/** Known values of {@link TargetServiceType} that the service accepts. */ +export enum KnownTargetServiceType { + /** AzureResource */ + AzureResource = "AzureResource", + /** ConfluentBootstrapServer */ + ConfluentBootstrapServer = "ConfluentBootstrapServer", + /** ConfluentSchemaRegistry */ + ConfluentSchemaRegistry = "ConfluentSchemaRegistry" +} + +/** + * Defines values for TargetServiceType. \ + * {@link KnownTargetServiceType} can be used interchangeably with TargetServiceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureResource** \ + * **ConfluentBootstrapServer** \ + * **ConfluentSchemaRegistry** + */ +export type TargetServiceType = string; + /** Known values of {@link AzureResourceType} that the service accepts. */ export enum KnownAzureResourceType { /** KeyVault */ @@ -666,50 +582,92 @@ export enum KnownSecretType { */ export type SecretType = string; -/** Optional parameters. */ -export interface LinkerListOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type LinkerListResponse = LinkerList; - -/** Optional parameters. */ -export interface LinkerGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type LinkerGetResponse = LinkerResource; - -/** Optional parameters. */ -export interface LinkerCreateOrUpdateOptionalParams - 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; +/** Known values of {@link ClientType} that the service accepts. */ +export enum KnownClientType { + /** None */ + None = "none", + /** Dotnet */ + Dotnet = "dotnet", + /** Java */ + Java = "java", + /** Python */ + Python = "python", + /** Go */ + Go = "go", + /** Php */ + Php = "php", + /** Ruby */ + Ruby = "ruby", + /** Django */ + Django = "django", + /** Nodejs */ + Nodejs = "nodejs", + /** SpringBoot */ + SpringBoot = "springBoot", + /** KafkaSpringBoot */ + KafkaSpringBoot = "kafka-springBoot" } -/** Contains response data for the createOrUpdate operation. */ -export type LinkerCreateOrUpdateResponse = LinkerResource; +/** + * Defines values for ClientType. \ + * {@link KnownClientType} can be used interchangeably with ClientType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **none** \ + * **dotnet** \ + * **java** \ + * **python** \ + * **go** \ + * **php** \ + * **ruby** \ + * **django** \ + * **nodejs** \ + * **springBoot** \ + * **kafka-springBoot** + */ +export type ClientType = string; -/** Optional parameters. */ -export interface LinkerDeleteOptionalParams - 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; +/** Known values of {@link VNetSolutionType} that the service accepts. */ +export enum KnownVNetSolutionType { + /** ServiceEndpoint */ + ServiceEndpoint = "serviceEndpoint", + /** PrivateLink */ + PrivateLink = "privateLink" } -/** Optional parameters. */ -export interface LinkerUpdateOptionalParams - 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; +/** + * Defines values for VNetSolutionType. \ + * {@link KnownVNetSolutionType} can be used interchangeably with VNetSolutionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **serviceEndpoint** \ + * **privateLink** + */ +export type VNetSolutionType = 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" } -/** Contains response data for the update operation. */ -export type LinkerUpdateResponse = LinkerResource; +/** + * 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; /** Optional parameters. */ export interface LinkerValidateOptionalParams @@ -730,13 +688,6 @@ export interface LinkerListConfigurationsOptionalParams /** Contains response data for the listConfigurations operation. */ export type LinkerListConfigurationsResponse = SourceConfigurationResult; -/** Optional parameters. */ -export interface LinkerListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type LinkerListNextResponse = LinkerList; - /** Optional parameters. */ export interface OperationsListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/servicelinker/arm-servicelinker/src/models/mappers.ts b/sdk/servicelinker/arm-servicelinker/src/models/mappers.ts index 606d95ae720c..7325de95bb68 100644 --- a/sdk/servicelinker/arm-servicelinker/src/models/mappers.ts +++ b/sdk/servicelinker/arm-servicelinker/src/models/mappers.ts @@ -8,175 +8,126 @@ import * as coreClient from "@azure/core-client"; -export const LinkerList: coreClient.CompositeMapper = { +export const ValidateOperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinkerList", + className: "ValidateOperationResult", modelProperties: { - nextLink: { - serializedName: "nextLink", + resourceId: { + serializedName: "resourceId", nullable: true, type: { name: "String" } }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LinkerResource" - } - } - } - } - } - } -}; - -export const TargetServiceBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TargetServiceBase", - uberParent: "TargetServiceBase", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const AuthInfoBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AuthInfoBase", - uberParent: "AuthInfoBase", - polymorphicDiscriminator: { - serializedName: "authType", - clientName: "authType" - }, - modelProperties: { - authType: { - serializedName: "authType", - required: true, + status: { + serializedName: "status", + nullable: true, type: { name: "String" } - } - } - } -}; - -export const VNetSolution: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VNetSolution", - modelProperties: { - type: { - serializedName: "type", + }, + linkerName: { + serializedName: "properties.linkerName", nullable: true, type: { name: "String" } - } - } - } -}; - -export const SecretStore: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecretStore", - modelProperties: { - keyVaultId: { - serializedName: "keyVaultId", + }, + isConnectionAvailable: { + serializedName: "properties.isConnectionAvailable", nullable: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", + }, + reportStartTimeUtc: { + serializedName: "properties.reportStartTimeUtc", + nullable: true, type: { - name: "String" + name: "DateTime" } }, - createdByType: { - serializedName: "createdByType", + reportEndTimeUtc: { + serializedName: "properties.reportEndTimeUtc", + nullable: true, type: { - name: "String" + name: "DateTime" } }, - createdAt: { - serializedName: "createdAt", + sourceId: { + serializedName: "properties.sourceId", + nullable: true, type: { - name: "DateTime" + name: "String" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + targetId: { + serializedName: "properties.targetId", + nullable: true, type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + authType: { + serializedName: "properties.authType", + nullable: true, type: { name: "String" } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + validationDetail: { + serializedName: "properties.validationDetail", + nullable: true, type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ValidationResultItem" + } + } } } } } }; -export const Resource: coreClient.CompositeMapper = { +export const ValidationResultItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "ValidationResultItem", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + description: { + serializedName: "description", + nullable: true, type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + result: { + serializedName: "result", + nullable: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "errorMessage", + nullable: true, + type: { + name: "String" + } + }, + errorCode: { + serializedName: "errorCode", + nullable: true, type: { name: "String" } @@ -281,183 +232,172 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { } }; -export const LinkerPatch: coreClient.CompositeMapper = { +export const SourceConfigurationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LinkerPatch", + className: "SourceConfigurationResult", modelProperties: { - targetService: { - serializedName: "properties.targetService", - type: { - name: "Composite", - className: "TargetServiceBase" - } - }, - authInfo: { - serializedName: "properties.authInfo", - type: { - name: "Composite", - className: "AuthInfoBase" - } - }, - clientType: { - serializedName: "properties.clientType", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - vNetSolution: { - serializedName: "properties.vNetSolution", - type: { - name: "Composite", - className: "VNetSolution" - } - }, - secretStore: { - serializedName: "properties.secretStore", - type: { - name: "Composite", - className: "SecretStore" - } - }, - scope: { - serializedName: "properties.scope", - nullable: true, + configurations: { + serializedName: "configurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceConfiguration" + } + } } } } } }; -export const ValidateOperationResult: coreClient.CompositeMapper = { +export const SourceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidateOperationResult", + className: "SourceConfiguration", modelProperties: { - resourceId: { - serializedName: "resourceId", - nullable: true, + name: { + serializedName: "name", type: { name: "String" } }, - status: { - serializedName: "status", + value: { + serializedName: "value", nullable: true, type: { name: "String" } - }, - linkerName: { - serializedName: "properties.linkerName", - nullable: true, + } + } + } +}; + +export const OperationListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } } }, - isConnectionAvailable: { - serializedName: "properties.isConnectionAvailable", - nullable: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean" + name: "String" } - }, - reportStartTimeUtc: { - serializedName: "properties.reportStartTimeUtc", - nullable: true, + } + } + } +}; + +export const Operation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, type: { - name: "DateTime" + name: "String" } }, - reportEndTimeUtc: { - serializedName: "properties.reportEndTimeUtc", - nullable: true, + isDataAction: { + serializedName: "isDataAction", + readOnly: true, type: { - name: "DateTime" + name: "Boolean" } }, - sourceId: { - serializedName: "properties.sourceId", - nullable: true, + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - targetId: { - serializedName: "properties.targetId", - nullable: true, + origin: { + serializedName: "origin", + readOnly: true, type: { name: "String" } }, - authType: { - serializedName: "properties.authType", - nullable: true, + actionType: { + serializedName: "actionType", + readOnly: true, type: { name: "String" } - }, - validationDetail: { - serializedName: "properties.validationDetail", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ValidationResultItem" - } - } - } } } } }; -export const ValidationResultItem: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ValidationResultItem", + className: "OperationDisplay", modelProperties: { - name: { - serializedName: "name", + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", - nullable: true, + resource: { + serializedName: "resource", + readOnly: true, type: { name: "String" } }, - result: { - serializedName: "result", - nullable: true, + operation: { + serializedName: "operation", + readOnly: true, type: { name: "String" } }, - errorMessage: { - serializedName: "errorMessage", - nullable: true, + description: { + serializedName: "description", + readOnly: true, type: { name: "String" } - }, - errorCode: { - serializedName: "errorCode", - nullable: true, + } + } + } +}; + +export const TargetServiceBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetServiceBase", + uberParent: "TargetServiceBase", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, type: { name: "String" } @@ -466,41 +406,61 @@ export const ValidationResultItem: coreClient.CompositeMapper = { } }; -export const SourceConfigurationResult: coreClient.CompositeMapper = { +export const AzureResourcePropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceConfigurationResult", + className: "AzureResourcePropertiesBase", + uberParent: "AzureResourcePropertiesBase", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, modelProperties: { - configurations: { - serializedName: "configurations", + type: { + serializedName: "type", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SourceConfiguration" - } - } + name: "String" } } } } }; -export const SourceConfiguration: coreClient.CompositeMapper = { +export const SecretInfoBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SourceConfiguration", + className: "SecretInfoBase", + uberParent: "SecretInfoBase", + polymorphicDiscriminator: { + serializedName: "secretType", + clientName: "secretType" + }, modelProperties: { - name: { - serializedName: "name", + secretType: { + serializedName: "secretType", + required: true, type: { name: "String" } - }, - value: { - serializedName: "value", - nullable: true, + } + } + } +}; + +export const AuthInfoBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AuthInfoBase", + uberParent: "AuthInfoBase", + polymorphicDiscriminator: { + serializedName: "authType", + clientName: "authType" + }, + modelProperties: { + authType: { + serializedName: "authType", + required: true, type: { name: "String" } @@ -509,27 +469,30 @@ export const SourceConfiguration: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const VNetSolution: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "VNetSolution", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + type: { + serializedName: "type", + nullable: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation" - } - } + name: "String" } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + } + } + } +}; + +export const SecretStore: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecretStore", + modelProperties: { + keyVaultId: { + serializedName: "keyVaultId", + nullable: true, type: { name: "String" } @@ -538,41 +501,72 @@ export const OperationListResult: coreClient.CompositeMapper = { } }; -export const Operation: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "SystemData", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, + createdByType: { + serializedName: "createdByType", type: { - name: "Boolean" + name: "String" } }, - display: { - serializedName: "display", + createdAt: { + serializedName: "createdAt", type: { - name: "Composite", - className: "OperationDisplay" + name: "DateTime" } }, - origin: { - serializedName: "origin", + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + 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" } }, - actionType: { - serializedName: "actionType", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", readOnly: true, type: { name: "String" @@ -582,56 +576,55 @@ export const Operation: coreClient.CompositeMapper = { } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const LinkerPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "LinkerPatch", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + targetService: { + serializedName: "properties.targetService", + type: { + name: "Composite", + className: "TargetServiceBase" + } + }, + authInfo: { + serializedName: "properties.authInfo", type: { - name: "String" + name: "Composite", + className: "AuthInfoBase" } }, - resource: { - serializedName: "resource", - readOnly: true, + clientType: { + serializedName: "properties.clientType", type: { name: "String" } }, - operation: { - serializedName: "operation", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + vNetSolution: { + serializedName: "properties.vNetSolution", type: { - name: "String" + name: "Composite", + className: "VNetSolution" } - } - } - } -}; - -export const AzureResourcePropertiesBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureResourcePropertiesBase", - uberParent: "AzureResourcePropertiesBase", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", - required: true, + }, + secretStore: { + serializedName: "properties.secretStore", + type: { + name: "Composite", + className: "SecretStore" + } + }, + scope: { + serializedName: "properties.scope", + nullable: true, type: { name: "String" } @@ -640,22 +633,29 @@ export const AzureResourcePropertiesBase: coreClient.CompositeMapper = { } }; -export const SecretInfoBase: coreClient.CompositeMapper = { +export const LinkerList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecretInfoBase", - uberParent: "SecretInfoBase", - polymorphicDiscriminator: { - serializedName: "secretType", - clientName: "secretType" - }, + className: "LinkerList", modelProperties: { - secretType: { - serializedName: "secretType", - required: true, + nextLink: { + serializedName: "nextLink", + nullable: true, type: { name: "String" } + }, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LinkerResource" + } + } + } } } } @@ -725,6 +725,92 @@ export const ConfluentSchemaRegistry: coreClient.CompositeMapper = { } }; +export const AzureKeyVaultProperties: coreClient.CompositeMapper = { + serializedName: "KeyVault", + type: { + name: "Composite", + className: "AzureKeyVaultProperties", + uberParent: "AzureResourcePropertiesBase", + polymorphicDiscriminator: + AzureResourcePropertiesBase.type.polymorphicDiscriminator, + modelProperties: { + ...AzureResourcePropertiesBase.type.modelProperties, + connectAsKubernetesCsiDriver: { + serializedName: "connectAsKubernetesCsiDriver", + nullable: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const ValueSecretInfo: coreClient.CompositeMapper = { + serializedName: "rawValue", + type: { + name: "Composite", + className: "ValueSecretInfo", + uberParent: "SecretInfoBase", + polymorphicDiscriminator: SecretInfoBase.type.polymorphicDiscriminator, + modelProperties: { + ...SecretInfoBase.type.modelProperties, + value: { + serializedName: "value", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultSecretReferenceSecretInfo: coreClient.CompositeMapper = { + serializedName: "keyVaultSecretReference", + type: { + name: "Composite", + className: "KeyVaultSecretReferenceSecretInfo", + uberParent: "SecretInfoBase", + polymorphicDiscriminator: SecretInfoBase.type.polymorphicDiscriminator, + modelProperties: { + ...SecretInfoBase.type.modelProperties, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + nullable: true, + type: { + name: "String" + } + } + } + } +}; + +export const KeyVaultSecretUriSecretInfo: coreClient.CompositeMapper = { + serializedName: "keyVaultSecretUri", + type: { + name: "Composite", + className: "KeyVaultSecretUriSecretInfo", + uberParent: "SecretInfoBase", + polymorphicDiscriminator: SecretInfoBase.type.polymorphicDiscriminator, + modelProperties: { + ...SecretInfoBase.type.modelProperties, + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + export const SecretAuthInfo: coreClient.CompositeMapper = { serializedName: "secret", type: { @@ -868,92 +954,6 @@ export const ProxyResource: coreClient.CompositeMapper = { } }; -export const AzureKeyVaultProperties: coreClient.CompositeMapper = { - serializedName: "KeyVault", - type: { - name: "Composite", - className: "AzureKeyVaultProperties", - uberParent: "AzureResourcePropertiesBase", - polymorphicDiscriminator: - AzureResourcePropertiesBase.type.polymorphicDiscriminator, - modelProperties: { - ...AzureResourcePropertiesBase.type.modelProperties, - connectAsKubernetesCsiDriver: { - serializedName: "connectAsKubernetesCsiDriver", - nullable: true, - type: { - name: "Boolean" - } - } - } - } -}; - -export const ValueSecretInfo: coreClient.CompositeMapper = { - serializedName: "rawValue", - type: { - name: "Composite", - className: "ValueSecretInfo", - uberParent: "SecretInfoBase", - polymorphicDiscriminator: SecretInfoBase.type.polymorphicDiscriminator, - modelProperties: { - ...SecretInfoBase.type.modelProperties, - value: { - serializedName: "value", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultSecretReferenceSecretInfo: coreClient.CompositeMapper = { - serializedName: "keyVaultSecretReference", - type: { - name: "Composite", - className: "KeyVaultSecretReferenceSecretInfo", - uberParent: "SecretInfoBase", - polymorphicDiscriminator: SecretInfoBase.type.polymorphicDiscriminator, - modelProperties: { - ...SecretInfoBase.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - nullable: true, - type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultSecretUriSecretInfo: coreClient.CompositeMapper = { - serializedName: "keyVaultSecretUri", - type: { - name: "Composite", - className: "KeyVaultSecretUriSecretInfo", - uberParent: "SecretInfoBase", - polymorphicDiscriminator: SecretInfoBase.type.polymorphicDiscriminator, - modelProperties: { - ...SecretInfoBase.type.modelProperties, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - export const LinkerResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1021,19 +1021,19 @@ export const LinkerResource: coreClient.CompositeMapper = { export let discriminators = { TargetServiceBase: TargetServiceBase, - AuthInfoBase: AuthInfoBase, AzureResourcePropertiesBase: AzureResourcePropertiesBase, SecretInfoBase: SecretInfoBase, + AuthInfoBase: AuthInfoBase, "TargetServiceBase.AzureResource": AzureResource, "TargetServiceBase.ConfluentBootstrapServer": ConfluentBootstrapServer, "TargetServiceBase.ConfluentSchemaRegistry": ConfluentSchemaRegistry, + "AzureResourcePropertiesBase.KeyVault": AzureKeyVaultProperties, + "SecretInfoBase.rawValue": ValueSecretInfo, + "SecretInfoBase.keyVaultSecretReference": KeyVaultSecretReferenceSecretInfo, + "SecretInfoBase.keyVaultSecretUri": KeyVaultSecretUriSecretInfo, "AuthInfoBase.secret": SecretAuthInfo, "AuthInfoBase.userAssignedIdentity": UserAssignedIdentityAuthInfo, "AuthInfoBase.systemAssignedIdentity": SystemAssignedIdentityAuthInfo, "AuthInfoBase.servicePrincipalSecret": ServicePrincipalSecretAuthInfo, - "AuthInfoBase.servicePrincipalCertificate": ServicePrincipalCertificateAuthInfo, - "AzureResourcePropertiesBase.KeyVault": AzureKeyVaultProperties, - "SecretInfoBase.rawValue": ValueSecretInfo, - "SecretInfoBase.keyVaultSecretReference": KeyVaultSecretReferenceSecretInfo, - "SecretInfoBase.keyVaultSecretUri": KeyVaultSecretUriSecretInfo + "AuthInfoBase.servicePrincipalCertificate": ServicePrincipalCertificateAuthInfo }; diff --git a/sdk/servicelinker/arm-servicelinker/src/models/parameters.ts b/sdk/servicelinker/arm-servicelinker/src/models/parameters.ts index ab0e3f41bd86..23d7ba23fb1c 100644 --- a/sdk/servicelinker/arm-servicelinker/src/models/parameters.ts +++ b/sdk/servicelinker/arm-servicelinker/src/models/parameters.ts @@ -11,10 +11,6 @@ import { OperationURLParameter, OperationQueryParameter } from "@azure/core-client"; -import { - LinkerResource as LinkerResourceMapper, - LinkerPatch as LinkerPatchMapper -} from "../models/mappers"; export const accept: OperationParameter = { parameterPath: "accept", @@ -75,28 +71,6 @@ export const linkerName: OperationURLParameter = { } }; -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: LinkerResourceMapper -}; - -export const parameters1: OperationParameter = { - parameterPath: "parameters", - mapper: LinkerPatchMapper -}; - export const nextLink: OperationURLParameter = { parameterPath: "nextLink", mapper: { diff --git a/sdk/servicelinker/arm-servicelinker/src/operations/linker.ts b/sdk/servicelinker/arm-servicelinker/src/operations/linker.ts index 9c6a50a0e00a..d1141122fa13 100644 --- a/sdk/servicelinker/arm-servicelinker/src/operations/linker.ts +++ b/sdk/servicelinker/arm-servicelinker/src/operations/linker.ts @@ -6,36 +6,24 @@ * 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 { Linker } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { ServiceLinkerManagementClient } from "../serviceLinkerManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; import { - LinkerResource, - LinkerListNextOptionalParams, - LinkerListOptionalParams, - LinkerListResponse, - LinkerGetOptionalParams, - LinkerGetResponse, - LinkerCreateOrUpdateOptionalParams, - LinkerCreateOrUpdateResponse, - LinkerDeleteOptionalParams, - LinkerPatch, - LinkerUpdateOptionalParams, - LinkerUpdateResponse, + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { LinkerValidateOptionalParams, LinkerValidateResponse, LinkerListConfigurationsOptionalParams, - LinkerListConfigurationsResponse, - LinkerListNextResponse + LinkerListConfigurationsResponse } from "../models"; -/// /** Class containing Linker operations. */ export class LinkerImpl implements Linker { private readonly client: ServiceLinkerManagementClient; @@ -48,367 +36,6 @@ export class LinkerImpl implements Linker { this.client = client; } - /** - * Returns list of Linkers which connects to the resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param options The options parameters. - */ - public list( - resourceUri: string, - options?: LinkerListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceUri, 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(resourceUri, options, settings); - } - }; - } - - private async *listPagingPage( - resourceUri: string, - options?: LinkerListOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: LinkerListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(resourceUri, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(resourceUri, continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - resourceUri: string, - options?: LinkerListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(resourceUri, options)) { - yield* page; - } - } - - /** - * Returns list of Linkers which connects to the resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param options The options parameters. - */ - private _list( - resourceUri: string, - options?: LinkerListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, options }, - listOperationSpec - ); - } - - /** - * Returns Linker resource for a given name. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param options The options parameters. - */ - get( - resourceUri: string, - linkerName: string, - options?: LinkerGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, linkerName, options }, - getOperationSpec - ); - } - - /** - * Create or update linker resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceUri: string, - linkerName: string, - parameters: LinkerResource, - options?: LinkerCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - LinkerCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { resourceUri, linkerName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update linker resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceUri: string, - linkerName: string, - parameters: LinkerResource, - options?: LinkerCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceUri, - linkerName, - parameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete a link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param options The options parameters. - */ - async beginDelete( - resourceUri: string, - linkerName: string, - options?: LinkerDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { resourceUri, linkerName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Delete a link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceUri: string, - linkerName: string, - options?: LinkerDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete(resourceUri, linkerName, options); - return poller.pollUntilDone(); - } - - /** - * Operation to update an existing link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - async beginUpdate( - resourceUri: string, - linkerName: string, - parameters: LinkerPatch, - options?: LinkerUpdateOptionalParams - ): Promise< - PollerLike, LinkerUpdateResponse> - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = 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 = new LroImpl( - sendOperation, - { resourceUri, linkerName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Operation to update an existing link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceUri: string, - linkerName: string, - parameters: LinkerPatch, - options?: LinkerUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceUri, - linkerName, - parameters, - options - ); - return poller.pollUntilDone(); - } - /** * Validate a link. * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be @@ -421,8 +48,8 @@ export class LinkerImpl implements Linker { linkerName: string, options?: LinkerValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, LinkerValidateResponse > > { @@ -432,7 +59,7 @@ export class LinkerImpl implements Linker { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -465,15 +92,18 @@ export class LinkerImpl implements Linker { }; }; - const lro = new LroImpl( - sendOperation, - { resourceUri, linkerName, options }, - validateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceUri, linkerName, options }, + spec: validateOperationSpec + }); + const poller = await createHttpPoller< + LinkerValidateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -512,147 +142,10 @@ export class LinkerImpl implements Linker { listConfigurationsOperationSpec ); } - - /** - * ListNext - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceUri: string, - nextLink: string, - options?: LinkerListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceUri, nextLink, options }, - listNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listOperationSpec: coreClient.OperationSpec = { - path: "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkerList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.resourceUri], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkerResource - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.linkerName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.LinkerResource - }, - 201: { - bodyMapper: Mappers.LinkerResource - }, - 202: { - bodyMapper: Mappers.LinkerResource - }, - 204: { - bodyMapper: Mappers.LinkerResource - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.linkerName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.linkerName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.LinkerResource - }, - 201: { - bodyMapper: Mappers.LinkerResource - }, - 202: { - bodyMapper: Mappers.LinkerResource - }, - 204: { - bodyMapper: Mappers.LinkerResource - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.linkerName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const validateOperationSpec: coreClient.OperationSpec = { path: "/{resourceUri}/providers/Microsoft.ServiceLinker/linkers/{linkerName}/validateLinker", @@ -704,22 +197,3 @@ const listConfigurationsOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.LinkerList - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceUri, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/servicelinker/arm-servicelinker/src/operationsInterfaces/linker.ts b/sdk/servicelinker/arm-servicelinker/src/operationsInterfaces/linker.ts index 2cb2e83ee1aa..f730e399c274 100644 --- a/sdk/servicelinker/arm-servicelinker/src/operationsInterfaces/linker.ts +++ b/sdk/servicelinker/arm-servicelinker/src/operationsInterfaces/linker.ts @@ -6,137 +6,16 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - LinkerResource, - LinkerListOptionalParams, - LinkerGetOptionalParams, - LinkerGetResponse, - LinkerCreateOrUpdateOptionalParams, - LinkerCreateOrUpdateResponse, - LinkerDeleteOptionalParams, - LinkerPatch, - LinkerUpdateOptionalParams, - LinkerUpdateResponse, LinkerValidateOptionalParams, LinkerValidateResponse, LinkerListConfigurationsOptionalParams, LinkerListConfigurationsResponse } from "../models"; -/// /** Interface representing a Linker. */ export interface Linker { - /** - * Returns list of Linkers which connects to the resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param options The options parameters. - */ - list( - resourceUri: string, - options?: LinkerListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Returns Linker resource for a given name. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param options The options parameters. - */ - get( - resourceUri: string, - linkerName: string, - options?: LinkerGetOptionalParams - ): Promise; - /** - * Create or update linker resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceUri: string, - linkerName: string, - parameters: LinkerResource, - options?: LinkerCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - LinkerCreateOrUpdateResponse - > - >; - /** - * Create or update linker resource. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceUri: string, - linkerName: string, - parameters: LinkerResource, - options?: LinkerCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete a link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param options The options parameters. - */ - beginDelete( - resourceUri: string, - linkerName: string, - options?: LinkerDeleteOptionalParams - ): Promise, void>>; - /** - * Delete a link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceUri: string, - linkerName: string, - options?: LinkerDeleteOptionalParams - ): Promise; - /** - * Operation to update an existing link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - beginUpdate( - resourceUri: string, - linkerName: string, - parameters: LinkerPatch, - options?: LinkerUpdateOptionalParams - ): Promise< - PollerLike, LinkerUpdateResponse> - >; - /** - * Operation to update an existing link. - * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be - * connected. - * @param linkerName The name Linker resource. - * @param parameters Linker details. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceUri: string, - linkerName: string, - parameters: LinkerPatch, - options?: LinkerUpdateOptionalParams - ): Promise; /** * Validate a link. * @param resourceUri The fully qualified Azure Resource manager identifier of the resource to be @@ -149,8 +28,8 @@ export interface Linker { linkerName: string, options?: LinkerValidateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, LinkerValidateResponse > >; diff --git a/sdk/servicelinker/arm-servicelinker/src/serviceLinkerManagementClient.ts b/sdk/servicelinker/arm-servicelinker/src/serviceLinkerManagementClient.ts index abd984510750..259901ba1da4 100644 --- a/sdk/servicelinker/arm-servicelinker/src/serviceLinkerManagementClient.ts +++ b/sdk/servicelinker/arm-servicelinker/src/serviceLinkerManagementClient.ts @@ -44,7 +44,7 @@ export class ServiceLinkerManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-servicelinker/2.1.1`; + const packageDetails = `azsdk-js-arm-servicelinker/3.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/servicelinker/arm-servicelinker/tsconfig.json b/sdk/servicelinker/arm-servicelinker/tsconfig.json index 5c861ab691f6..3e6ae96443f3 100644 --- a/sdk/servicelinker/arm-servicelinker/tsconfig.json +++ b/sdk/servicelinker/arm-servicelinker/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-servicelinker": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"