diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index a37ddb62fbfb..ea2f24032a10 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -19,6 +19,7 @@ specifiers: '@rush-temp/arm-cdn': file:./projects/arm-cdn.tgz '@rush-temp/arm-cognitiveservices': file:./projects/arm-cognitiveservices.tgz '@rush-temp/arm-compute': file:./projects/arm-compute.tgz + '@rush-temp/arm-confluent': file:./projects/arm-confluent.tgz '@rush-temp/arm-consumption': file:./projects/arm-consumption.tgz '@rush-temp/arm-containerregistry': file:./projects/arm-containerregistry.tgz '@rush-temp/arm-containerservice': file:./projects/arm-containerservice.tgz @@ -188,6 +189,7 @@ dependencies: '@rush-temp/arm-cdn': file:projects/arm-cdn.tgz '@rush-temp/arm-cognitiveservices': file:projects/arm-cognitiveservices.tgz '@rush-temp/arm-compute': file:projects/arm-compute.tgz + '@rush-temp/arm-confluent': file:projects/arm-confluent.tgz '@rush-temp/arm-consumption': file:projects/arm-consumption.tgz '@rush-temp/arm-containerregistry': file:projects/arm-containerregistry.tgz '@rush-temp/arm-containerservice': file:projects/arm-containerservice.tgz @@ -7854,7 +7856,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-ab0RnaytbrVZoJQONDDsXop7PN/NZgfyl/UXKCdmYwv0uVLDwWGH+zfZ3b2tII7SrMPGq08qgM9mvWX92LgJWQ==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-u1RuSYeAxMH+EZpLd9X7Z62tCxELWXl01dDTUDC/zfmPklcJqyJooNpZfJ25LC+ch8ivFyeZ5VY3jHK0Te1H+g==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -7897,7 +7899,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-q/CvF23gNMcT9oDHNsVf/3LrKoLC6r5xHse9ZjUgoPrStQehVb3b+85K8EeOOxFCixTAVusbFiAvT93cz9FbMA==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-xvpQlD5jgGFaVsBO1RfjhZyqO4jFMEAZgAMaO/+30izDsiXX3CCYDnVDYC7l9vHiDgdpUZbO42TXSEbscMMc/A==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -7944,7 +7946,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-Was1FlQDfni4j3gQChqwG0ilBbvJgyuua7RskKoMxx1QDuB1mAvQUIreTiRhwmkiFDkTm3mZI6Mrdj4SkCEjpQ==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-yv9zXQdVFEJr6z0DWN4qWWG5NRM/oJ0FOT+PvEM8dNTCX0h2pM3VZzx4pduqH66X4MeYLRkB5G8rDv02c0cqww==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -7997,7 +7999,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-+4/loU1HOCjvbKbOE/FQuR9W03ac1qyodf4cecEbhNxMEYxwyjQL6iIG3sZxya31SQ+erxGBcm0zcB5m7pGY3g==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-/vNpWhmG6wzou2UBl5UnF4liLZpK00WyYazSH3tkMfoGMU70+k0TqZ0k5zCymBcSVaNisbVg+gUSZTD9ZZH7LQ==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -8042,7 +8044,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-yH80gCGTSKIEWTf/JqjZJbpLQzmMmACfZH09xXh6Ra8sviE42uoZwnH9yjH9WvY719jKl5ENmPME4inJvCfxwA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-3CXLJGbtAkZc6TmdBzCN09fCot57bFuySZhg2onmcM2QU/y7yCHKMMqZyh0XQsPQ7qra0itAwU4t07+HnTrZEw==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -8089,7 +8091,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-G4+w6DvulKHJqm5Dg6hqF7ZaN+8gtSOtMsaFqIPXQq611S8Wt7OPUW4h1neiUwToapAE1rRBV/7D0SCqlOn7sA==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-eCz6EZJl3qTMP4ywxI1v1KSRbwRprVJsnRr3b4Cv4vamq4b0APWDrgu9K/g3K03vp2wNbuheBlaNPBHGXqsM2g==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -8140,7 +8142,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-c/7MyPtRsY2NdbFwCU/u6KKRgHi05NjKM5CwTIrbwhIqp7BZvvK4WAKkBufNdXMRhWEYX602aAqUU+Cq8Dtwpg==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-EFeN/KUeqdXjAa76GXvzJWrbGYrc1TlUdD1XI3QlULH5MrC5a+3uAweaP5uIzXONmnPG3FUZrd9uV07T2uHhvg==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -8192,7 +8194,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-RTnq5Bnk1gO47YNXxKXJ7x9fGkqpp5gpFAnT6h0LzBkYEb8CgttoAQDQ7/K5dV70hOwAhrPJCxvkLBWdW3Rekg==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-hrSXCZ6eGxTUNHn31pEMmCt2jRpCewcV/Ov3DSHLCZ8QTyih3Oxci6Xb7tseW2ZB5PRQz2FRrC557gdPYdVC/Q==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -8459,6 +8461,27 @@ packages: uglify-js: 3.14.3 dev: false + file:projects/arm-confluent.tgz: + resolution: {integrity: sha512-jXenjQsBBnIV0WeP9lGHDgrWpTQBr0nOQF4RCcTKTA9tD8f6B/DhYy6m+fgc1ejTXlZqIfp20kTKc3vOI0FIBQ==, tarball: file:projects/arm-confluent.tgz} + name: '@rush-temp/arm-confluent' + version: 0.0.0 + dependencies: + '@microsoft/api-extractor': 7.18.19 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + cross-env: 7.0.3 + mkdirp: 1.0.4 + mocha: 7.2.0 + rimraf: 3.0.2 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 + tslib: 2.3.1 + typescript: 4.2.4 + uglify-js: 3.14.3 + dev: false + file:projects/arm-consumption.tgz: resolution: {integrity: sha512-+QO3p+4CRPfQWWvafo/pWxWoe8GKmhggUHMBLgJtRy7Lkgd/0Z96EqDBhtPyQWUhrLah6ZQLyLMmBRKl8/UNdg==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' @@ -9481,7 +9504,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-xAAhJzTO9YVdCo04DAo7PzW1wrbdyHXNUFmikB+7VhqDfVbqiymycIvubyuVa3LjrhdRBOQyzMfkorsFsGT2rg==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-1cYc9upFE5cDmppkfWNP4I7hTWQ5C/N98qM50Uc5bpfqdmFUS7MqXE3BJIifZ/RyoHywHGuwdPgKu5ozBj31Bw==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -9538,7 +9561,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-cE7IsJBeMhzpBvg1UefKnajIKnioO8OmCIAsyiHLVJn+4NpgszXU9+QHWEbXy7W1q83XTalsj4CAXRKvOFkldA==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-KXdNo2HmgbXFgKg1DG7Yr/TtcHXRd2EIPXbChgaLEHIClJ74TOwvwEKNzxiVUcoCE72fo1Crjmm4JN0uBPvtWw==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -9600,7 +9623,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-BnjLd/QpVnhHttTkgfyjZcL+3EtgX92tgGdsGDecEDRBhlGgKQkc9CEBgDyULD7FXJLZ2Ot8NtvhTvzHd8+M/w==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-fAa1QN9fUP7uKX1cFhAhYU66fOO6oFj0VroID2wP8EyQbGRmeScPAP1uAksGGeWXVW7J5M40uI31L2oIT7pjhQ==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -9658,7 +9681,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-l8Y+HjmXWbl0kidKJa6lfl2ezUppZ0QI7MbqEDW15mopxNYj34P7vqVntu5IPnvTQKDJEeFk/0rPZjtbwNZggQ==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-Wsq/cbvj2skuy/8RgaKp6/bDY/WRqPKfKtA8+4Hf6L5DOG1w5ZESVX1VnSq5tSOUaiyiUaOBROtBJXmKCrBArQ==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -9715,7 +9738,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-Vfp3YcmdRtGfIkfwuVQ8hJBvql8M8JBlux7y1vOyQfpQHWrW9gllGKMEbaEr1ag8ZjdofPEab/QnpSZmxCyEhw==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-Jo03JizQrbBgUl2W3xH7B0bmY4gTtjvrG097aG1tCzqHHyul06IzZwxmR6ntw98knptEerEVUkYqf5GTFaC3Cw==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -9773,7 +9796,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-lMT5pBMrcdSbBbpdtYL24Ll2FAYXeTzWZUxFdxAXq2VU3ey0V0BJIk67D0LvagaI2S7uO355HpxNEOuZGJHgIg==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-a8Kr8kwgEO1DSh51HKl4mDDrmbNa2ALs22pltGLR3qDMKatlAAv+SxTyzg4V3UPv+yT4vukiW+3JtFBjGn/j6Q==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -9830,7 +9853,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-YdJBvLJlLPImJ/aeGKVvgx62omHDwvx4JY66nmsJH5Q6GFUm/7ZgaNXCPuyRqoiwER9C+aKNLnNP1ckWLhbSfw==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-KCv3nbbf3mFfOqax4OBY1QgKlKoFboDABjurL02e+3QcK5iXhktXnhQW3025aPnBj4ZbhablGwqaooNAnV1VQg==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -9888,7 +9911,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-Otg1wZND5QV8jpID+Oerk+UqsEaqkzoK6YV0u/P15HuMTfclaxF/PS/AhLyqfccttp5itvkGGcutlUeZvCSKgQ==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-FJxE+KG4zVvThfG0SOfpfuAmrn+gzgNqLY3bAA+ryOSQBkfZWjmmrLfbUZv5wM2TL272mlxxbKoyYnY8sVKsJg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -9944,7 +9967,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-WDN2rqUqQRZI8TOOV6j4NrAzfv71QCoZY5rPJHUSk5pSwSbWZyQ2NTLQwv+nf4sCPMBwXIvqSosedNZjrdEFbA==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-0xly5mg3c1DxMdXjMpHbpXNoWA+g8h1KZXnuDAvosKAasbeeZwV7qEJ/rK8RRxJgS44w/YKLwXRX9OyhlqRjBA==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -9989,7 +10012,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-9CwmY4HuTDpc1kb4ZsuUUJnKgd6MYNvuhU8uav/018jJTApit27MV9c16ByDjBLxIovSvTz0dqik3AWM7iH+EA==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-BKA2Dr5Kz/xKhZuaP9Q3jjdX8bRox8wtEuf2pLUFKWIGapFGJGYljHVM2WmNeIEGWTP332OVqP9m2kkcD41uQw==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -10036,7 +10059,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-o4/vVNFNkW+bLPUcQ1AQcad5yVVwDpUH8bA1zXd48O4Ct8ELkcbkURR1+1qlxTdZdBEfXBj7se8nMQtqpvnA/A==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-+AjDA2zWxljz1cVHStZNpmHHAlOLN2dj3Fy2bZfpB9Kl1pCIXaVXeuEjEJTQFqGFh8iwyD2uHZ9lK7a8O2KW6A==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -10095,7 +10118,7 @@ packages: dev: false file:projects/core-asynciterator-polyfill.tgz: - resolution: {integrity: sha512-NMQzIXmS6Aw+/UpoOPolEKGWu0ak5sbvZn3jGCttx2gFZqO832WYZuAeNlwxEYUepdypxNQRnAR8EAdx7b7iiw==, tarball: file:projects/core-asynciterator-polyfill.tgz} + resolution: {integrity: sha512-ugOcJyCydJvJ8cDCJkyx+P3NLINxAf9NluDDWAnvkSOyZG0s4Gc3sV2uSC02/a6WQ+zCNHYS7xtAZkoKa2nkyw==, tarball: file:projects/core-asynciterator-polyfill.tgz} name: '@rush-temp/core-asynciterator-polyfill' version: 0.0.0 dependencies: @@ -10109,7 +10132,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-5za6xyOYzRmSo5PeWlUk551FZeM+MkLHFd0l2Oh84pwtIDbMS3gr6txPMJ8k088/Dhvr+HDNTGRhGsGlZqgIig==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-UvkHUe2LQU+T+OHBHkY4pZg0tTFb67h4leQSy2utolPHNVglaR9BbkbeCepYWJ75o3JFeaZSi/Iz5AgZpWNfIQ==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -10136,7 +10159,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-uT5cnoJ29hlOhdzBgjlTt9Z4g/MU5mdyzsFBg+wpkFxdhGvoAiNcTjErOSjs+5UHjxt5QJdyro+poWQitpzYJg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-PxE3+UKSxBBaa1Qix8rCedH0Yoy2pM62A+8fLJMmkL425NZO8ZjIC7PnTETUa2i+kC50zKsSaWkNkEsbLYbGmQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -10183,7 +10206,7 @@ packages: dev: false file:projects/core-client-lro.tgz: - resolution: {integrity: sha512-14MiFwnsKK9QvQvw2HCX58K9SBbi1vwuharI1RRrGA/QE5T1vjt003O8xyOE0+VpyFhVxOBcPJAzeve+iaVlag==, tarball: file:projects/core-client-lro.tgz} + resolution: {integrity: sha512-s2mUnPzFvC65O19ZtV7f2IMME7QTer+ioCbfO4dDHaGBc651DKTI0/4RqnA24weKlLueUZccCag8lbxHt3ZrVQ==, tarball: file:projects/core-client-lro.tgz} name: '@rush-temp/core-client-lro' version: 0.0.0 dependencies: @@ -10227,7 +10250,7 @@ packages: dev: false file:projects/core-client-paging.tgz: - resolution: {integrity: sha512-6zYQV6oIAFUeOUZCLOQMaaOIrTxq4ZByRSK9v8y0kpJt2ONw9ZsPxeDzDl7F9/sboyw7R5I9nTBYmGHAGBD1gw==, tarball: file:projects/core-client-paging.tgz} + resolution: {integrity: sha512-DCFNc7TF3nxukQiopjo/zsrGwgmGx69o9or5LFOvKoR6Ca0W0Z2yT310g9yC/AaA3vcgvy0E6/enm8ihkuaf5A==, tarball: file:projects/core-client-paging.tgz} name: '@rush-temp/core-client-paging' version: 0.0.0 dependencies: @@ -10269,7 +10292,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-40FmaWM7B/I4tBCb2GxVu8yMRoVaTVL1ZbemM3EMMtHS7VGVbTome+vt3Esz6l9RsItmRok4G81NzPW5w4N5SA==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-z3SFo91UYPq1GvbCsTU1Z+dnYHxT7lDXem8cC3kDcRh2UyohZYHRD/xBY3QER4Kc0OIf4W8CncSnpq57ftJuMg==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -10311,7 +10334,7 @@ packages: dev: false file:projects/core-crypto.tgz: - resolution: {integrity: sha512-J2pLnKslszxb3f01A/fO+69mI9MUGiFZIcThEAccAja3ngH+G596d2tDeVVj8dJ3j5fiu+DvrbRwNeUndO6+8w==, tarball: file:projects/core-crypto.tgz} + resolution: {integrity: sha512-bNBaYb6X4/jVmPmc5QUh0/brQcbWXltKb38BNAWDFnenVofKRBp1/EMrHHwW99fyhh9gVFpioFwd0ZnEkOYmnQ==, tarball: file:projects/core-crypto.tgz} name: '@rush-temp/core-crypto' version: 0.0.0 dependencies: @@ -10356,7 +10379,7 @@ packages: dev: false file:projects/core-http.tgz: - resolution: {integrity: sha512-J9YoKDE6YGbZLCR4egrdgPInlJPtgaNfyuCRFF7qC8WtZ3hC1lQDYZBsHwuXobFLIP4LUyqVV7vMiYamLENpew==, tarball: file:projects/core-http.tgz} + resolution: {integrity: sha512-UH5ljunFMq5otz9KrWRYCiK7P/PhiO0LspIboYPbXSwAzy4wRJDQNg454inGqyJxDkYMtBaEbqnD59k6DGrX/w==, tarball: file:projects/core-http.tgz} name: '@rush-temp/core-http' version: 0.0.0 dependencies: @@ -10425,7 +10448,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-tLmQGr9tGjn4FjZr43yYqNrV3LWFkUCFYElX20HxmIlwapaEPy8OXyURbnjWB7hhu82YV1UaEF8j/X4iHOHZCA==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-Y4ztqOmUB7myEM1FHg0VLlz4/KhyyeTCSSt6ouLCQ+7kEFCmFhjUP8fMB6uizu1HaT+d0UnHbrXDMVpR8TRE4w==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -10470,7 +10493,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-UjHPixglA9K1Yn2RahHbaLPYGstD1B2lvrMTRTgMgwaeFQuzHajn6TQBvO4bs4Yg9Sjl+XwKGFYWP8LEGTba7A==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-cmJf/Ggz15Y8eRC5wwhR++J+AgzassuQ1SdQLYvcKZyRxuTk2fuCTGpLW2LqJbSaoZVznm50ZZZh1vrhAenl/g==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -10508,7 +10531,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-wxzY3+t7F39z7Kq8lUkS6fRk/2LXYGd1tmzyspZHHKrXTwZ5llcznQOiqV9bIJROXpo9/nzBJXS1jOm5S7VI8g==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-Xy4V/9Y8TfgLoT+g1tXOhOUBpcSa0jbAThMncVPswnNmn2ZZMH5I+kjmxy0n8tVjZrttANSBytJsiSXlWsHIug==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -10559,7 +10582,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-f61XTsl+LjwqPrnFo3B2Y62ZxqWYFKRTNrV/BYqo72zS8RAfNJ/5McNTZf3KF5XMRsmDNlNCerx9M3KHWcQilA==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-qvCCahJK/PW5kRBfOZFFZllmpJe0kTCCA5+FVA1VYy8rx+3XboCg8nIwJfNLr9AvAZa7H20mnrABOEWifkU0jQ==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -10603,7 +10626,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-FNsdK96TLCqM6bDGl1STn9VB1HoJAtmAOPF9/CRLGETEbi/z4JECaCo6bAS8kKXWk7P33UkPLYp8IF8n2bSgdg==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-1fQP9i7iCm1zs76t9K22KJ5EDrKGxe1p7QamYNfU0QwBjVC1f8etYSeL++wRMOhZfwjY2oE5iNEfZQOk1I3REg==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -10646,7 +10669,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-jZ9OmhFtUTs6H+ar4gjE3WwO/OeCG99di7P0AOLV5kQdDREn79Eb+Q8JdoRj1iwxksdiPGX92gzI4dCKXOtECw==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-kpLzsdqCWQHR11IszASmwM5FahXFxQYaPDArsrYaA89uT92KMTzqHc0f3e9NTPRyqLiHZXuhqFpWgPBjLbfWlQ==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -10691,7 +10714,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-Pz1pN92p604dS/NMZHVYHn8LsMANsPxp5eGK4726AHJs4phugA1uQih4edKZwWqA7GIOnM2mI88vb12y4nBs5A==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-U6xSZLG5K8r1t8JkRNhKf7VLN0tSbrhoJs/kvifbON1+2SjuZpcFwvErPW4ylGlrEt1JRURUWn79QV87ff2OQQ==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -10742,7 +10765,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-SFqBsNmgiaWwDI10QGmpd7jIw/8fO8VSSxx9j+ytK1lq9+xFAPZ/POGPWII4agDMpjcCLeDTE7lOBv1xX16pQg==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-O7CIRgpIB+tsFmCG7UvXJhEsHnkJILejjC0UdjGQDZrrAriDR2qBiMFZi1kGZn2WZHGqU1mywzY5MsBWS1GjTA==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -10803,7 +10826,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-kIv+fJbY2f89rQmcriGnUQSMyEfqk0ywz7kxqv71AkbY0EIe02xTQgbUpQkvyM39BLeG4XOM736TsrhK9i9vgw==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-ExPHrCE3m71/FrakA576UduFoYRSKlzn1I33/TfiUBCuqQzMWUqUVdwsG/WGo83rbNfSpdJSeK+KCxcVOwrMcg==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -10846,7 +10869,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-7l1OHcIlni48MkM7KAZfSZ56o/sZ8rrg+iCjlfWui9mbQCHWF5XgrWIXNKtjYB2QXpBEn2bmwqSKQvr+cWXTtw==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-E4xrVkieEKeOr1SRqW0PpICK3JzdjKZgmDbOhacVVLQMZBtGctaP4RmBuyTnQ9HMX2Ue5JFPWvJ5oAFyQSYdRA==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -10904,7 +10927,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-9QeRV6tJaY41UTA9Bf7mXhuazf83pKvMngFDH/rawytjqFGjwSjPt5yTTWyLw6Le3bslteTJ52TlPlq0HSAZNQ==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-oIAP+zht1Mb7PUVzR4que7GVTjteONl2bebL6v1BKor67OiiV9wT7rl714aD3rLLfXFpyQNocd5h2FQfzGZApw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -10941,7 +10964,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-d+ROSZoC4muMeYFR6Q6xxmLlCd3rArBwX+ogBtYpbAidDG9W16hS9TUFBL72TfsWSXl3Qs3zMe1zYJKy9ValFg==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-A57GYd+DMGazEi3SD3h/Wtm4y4OxpQe9qSaAWlnuAXBF1uJ2vXmL7F72VlPWdBGaXv63MzG9yQB0KIiZs2w0nA==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -11019,7 +11042,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-OiIxcx+gmDgjz3MaHl8+QfpuzSUwOP1Yu9H7kWuSxiuu07WzYNIeZjT0Et8PZUGsm3PAJApNfWshGnJ6rBX1LA==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-mi+/HkOMfpkBUfNx/Fidj44M/kAbYTbbuMIjw2WJb8Mu+B+W7T/QoB/TCPKKgW7B6z8FIFplUEr6fNL9ChGM+Q==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -11082,7 +11105,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-tQ3HNismGFDxh8PzIy159+fDFFklNzJYQRFE+S/HCAdNyZRK2wMOG3+4blHNLmqCr38GZPyox01untQCsbxz5g==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-niYUoa5GP9GCesrt0CcPUEbHXArodhSeNYeO1aWeyvv0P7QTgD4FoZWU8R/DswptFr0XqxMBS52/tFTI1hNX5g==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -11148,7 +11171,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-Wb6FU3xeTRFx9kjYQfuHZlCD1E4PikPNXm6C5tkZ8qkij96mHcagN6V7fJ0MLn4DUo6Iz3PF3q08S1jKmOFPGg==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-rzHGprGR84aHlej8RgrsL4mjWXDBfkgzWRyrOrRrMq6OY7boBuybiCv6XT3lUp2KL8fO/NNIhFkXttqauv5E9A==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -11213,7 +11236,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-aUWzOqq1sv2F72eCGmijhvnpnasuUEAsnkUGV0xInfTyf5LOVf3Z//U8fUUQm1OshoiqIuyjNOhFZU/bz8aLAQ==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-bGNkGKoGAg4kiboATbTIh6EuutLD64hwEyENlUrHMDlAr8l9WPILKc51mPU8Imgr9bFLB7ymXJ4RMyORDfTmPg==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -11250,7 +11273,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-06rNZoUZii907sL/dmwYPnrLwAfeJgsiY8WCfNFrOeSmDFxI7/A3N/FH2nx2MlKwx+faPQ24+0ATF9FAUT8gxQ==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-SplX9+8ejpz1BoLG/PBrZlFr2tyCZHxhxdySL6B88i9JQI26gs57bFsVtEtIbUT3mkPlB8F+rVGiMYz+EgPafg==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -11285,7 +11308,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-tHxEzQVPPXXKbPqZ3jMWbY+ofDzNwarKsUD2q5kX4PFiM63RofyiOJvBd0p6J+AvrsC7pn0DjFmU6jxKu6nskQ==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-7In0aUFFgftkzhxWi4t+JgEJwhSj5aoC5nOOpOOnTKZwPYpSO4dHaW71cNYmMAQDutMNj+JqTZjB4SXyrVgrjA==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -11341,7 +11364,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-6LBsYH/eIaBvoej21Y8fBf3ZTBcjRgs18Ltet8id34p+o9URtBOPBpsgQPidpUhen9aSyY/8yUXIxTPXSkeoxg==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-yKaQRRzbc8nuJGrj8daTEQ3r45c20aXlL1O21pNa+L7foP7ezix+r/qe2NNpYRov+uEZNTRQ9GZ2K48pDXBhXA==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -11367,7 +11390,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-8Kn9/Qa2yxAcXfUinCf5ZztmFJFAB6ufJDhLZedHkz/Y1r0NfLjeCmdXcnSMY/axcK2fmW3AsfD2UEpdUhR4SA==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-BLTg7oaQA1fMvJ4sW56q1fbUfDP0nDR6rditFplaTf/A9WMwj+DRef1+oJsoRyi3xllzJf7MYytBhfvL+3/13w==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -11424,7 +11447,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-rxc+Hu1AlzQzkPrkHSLkyZDgb5z5GYBZ63jDuLQXW3L4BhCUX+54Q6o7gh1E/5iV2XTJf1MjjliEihO7LFh2qg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-WthgrGyM2M7tYPjG3PDMa94zvtkQ85lCHcw0zcwW+y0flTnlcQ5PwfP+5RBtej+v+KZuzXDcWSM4yq9/Q+OLgA==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -11470,7 +11493,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-YUzQyU4oCPYmfA9AOUF1k397q08RoUeUTTAEzbd+ZnyRlhAhR+2av2CMW97YQvwN8V5bnfWhvpFl1hV1tgERHA==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-Bk5dtToNIkRBLN4Nd9+Mv4U2JFus1u5GI8K/kWIC/Jpqx1tsz7ycZQTShRbxlkhlbUYBQ1EJdxuq0H3KwuDE1w==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -11545,7 +11568,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-BF6nDaoQIbCcRovEo0RCElWHBjN2cC7pBDyVxYHS2FzNU86+Cuukvl34qSeLYPd0lFZGdm8uxXrOPDv3JCxpcg==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-CnhwCD4UCEn+o8qGUO1aFc8MDlRSuDqXNCDI7CZjn2uKtXCW/odMSEBi0W46ebUO0bIfKDBypMDGmqBCRukGYA==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -11608,7 +11631,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-BScu99ZgDk9ejdDYGP/fQA+HAtklKLpmoMH4/e1BkMYTXdz5bMGTRTWSvIf0ScbS9pH2j/px3VsiqsCHpJBnew==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-UmxZQwycw7tNjcP9iBHQncUhcF9fdtTIg/9RZ7ah34KpobqIkntA+dsidPc9zO7P1F34rO82ZYh1BAcXXd9BAg==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -11667,7 +11690,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-aXvBO/56tAXpc2ud7z5TAjuTEafAfR3i3QZuqtPWc+61doYZGjBvRtdQzGRIiQ+lQnngGhesjXci3H6M//KBHg==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-s+CWBtYL3wvjpoGfYZF+l+WA/hp0MO1FAkjkLnP7pPZn9AttIFPHe71R4V38GRqXMQXCgs9r2dH2kwrDCdQcNA==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -11714,7 +11737,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-8MBrnxBOZWh+BT6Qcy3r5DC3rnVkoW9oaZhA2sPSQP8X4aZmHLVbVjPTMkBJsoeFtb8pHOIueaujeiDlrkMEWA==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-b6eDnYYjDWqYViVgDoL+V92VmzB1d9MeVRXQ8AWO6r7woR+k+VAk+UphB4Ujcx3j7ytW6sdaZyBhJQ3SimCmdA==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -11761,7 +11784,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-e0usRbRSnLvsfy7nD2/3P+e8bLImLKfL9sPCKULTUDekvYwQu1aCLyZe3U/5ksf9tPXRajnUM+y0jH/bgsujUA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-Xsv8+c/IQuxCqIvtUR5sCu58A8CGqIXRrr0dFzCmu+M8KJr9umHf8zSwuJRDd7RcTMmJwDfGiWKW1eNQ1BkMHg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -11827,7 +11850,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-UvJyk/Munw1fDcubGdOm5PcTPlA60Fl86emO/R3GgFUjogZKk7SGRrfZYWf6SWzIGxzF/eU7TYkzOz3veQyYSA==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-hUGjniOfZdX1DTXlFw/eeSyMLWuV3E/A+21fV6405htKobNDL6r/pa8EnyOKbo7G1yc6/DlmXWb1vWTa5pl9fg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -11864,7 +11887,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-B/+CGj1TXnWvjyhD3/63KYkpGnmm58plFrvZFMhOS3zecalL4MeH9Jti3T/rcsdJG015pxy8P2liDuMuHHtbmQ==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-Olrg1jtfep/4NgEQx7aAjpKj2k0BZvQqn+AvZryxUZfOjf6/BqQJiRc4l3e0e0PK5UndrJJmGWbiizOI/G3uug==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -12331,7 +12354,7 @@ packages: dev: false file:projects/purview-account.tgz: - resolution: {integrity: sha512-DQpCdMx6Yc4xpI6GHuPj4osgCIrcLC5IR7TbqLeVvqz24YN6V2WDWEp8H9mATGfLLBt2lJlG8E05A2WioukmvQ==, tarball: file:projects/purview-account.tgz} + resolution: {integrity: sha512-+2PvA5m+lhZ2oHWg8xWthvvMAPwoDPhKRfjGYM6I/+vwzhiUehNMy2iIR79Y9chxfmvOAA4T2dw85Cs5NiiANw==, tarball: file:projects/purview-account.tgz} name: '@rush-temp/purview-account' version: 0.0.0 dependencies: @@ -12381,7 +12404,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-HHm1IBP416EMgXjd7zTtOQqCyS0+rg/Ik1Pfqp/MZMjGM7hc27er85fVh4jRyvPubG4bJNM6iyeMaHXt/HKmyQ==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-hIYrnsk19HQKi7hPqiGK5Co2zeQrF7M70vRH56uQ+LWTtZu76tj7zX90Z064ZcJa4hlcHRrdOtzJ2vhfg3nyig==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -12427,7 +12450,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-Zl2oBL2/AyJMPYZN3H78GotRvzgExYDG9JJmt+QuO34jsT6DDtO9EMIRwdjGOAKFFcLhJkLAuO2fDbQPw+XGAw==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-85zICH/JRCYk7Q4OUoFjFrY0qEzFBoQCB1XCCjWL28TNL1c9JMydVBjYh90AG+Xymq81vTgaegw1oEJThP1ZdQ==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -12473,7 +12496,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-j0YycGCRFnKxxJVko0VVeIaQrEXXTE0lETUiINtdcnCYPUm6eHYRDCgCnxMCK/FPzfzd74a2PGGvD3zAlvZgDw==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-UvvGCxvn0w/tsCtOd/4pfwwZ5HvexYxH2rX/ftDWcSHk7Du70TN0tnN9qKS76DtpPHT6fHlk9atKQb/MeMV9Tw==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -12519,7 +12542,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-KKglCKEUw9k3dqrDDJl+Z44W9U2UWKOuR7SahBraYNdTr/Ae/OkfcfWfHs17mQDFvP8NVL+3sCuC/hOlrdqiEQ==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-az4CM+ikoy7VKPVrT16mhVoQBkTfGOqjYiM1xOXSTrakXuGyh7OkVBQ09oxPigtvoJyqeSgfIKbd9T5cP1XP8A==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -12577,7 +12600,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-jipaR6ba7yucvB7lDHHDb0xy24Sbzk+WMYrGmCGLHVY2OE0ZTY7z8zTEdhFFcMdDnq5S468zjNMMFNTcParEqg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-97fRp3BkBCZ/jyo0gQE360uOeKyqcf68FCmdoIyIR5q8TXxZNX8+uTFVhjJRi8yNGkqSqehUuJk1Lpjm6dK1xw==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -12629,7 +12652,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-6QbYdqJnLQhSFDl3fwUWstPnUCVouvOcB5hsnP081SNPzLCEec6zIn5IKpBzmnNJF2TnIyy65biwIFfXcKUhRg==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-AvFttkS65E4YvVmML4BSCk5bZS/UMVeT3GmuBj9bwYQkNqIrFTZwJGG4rfiph+gYEHMp/eMP5fFRRZhYo2PKiA==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -12675,7 +12698,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-h5GtzMdjUtjjnyaKvGIlGrDOjMZ1/rHAPOUlVX+bOGxbz6hjeDS16eyjR6CGUgHSfFhlH7aiM0SsBjH8OilKLQ==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-pCmTQLXkg9VT2c/6QcU8snmJvW42ugOCrsqjCOJ77IN0ccFNcAge3hhklqFH7Qz7GIo67bq9/B//GR5wtr9hag==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -12735,7 +12758,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-tDh3mNjr22q/CfjwRcd0XfHy0jIL/E1UtEnpe1U0IZ2sbaWrbnekklUgDF8vvAC3vwM2mH3LllA7Z5nnHR4DKA==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-FnMoBgjV07Jg7N2dnqZBLxtYc+yILIaGb0WB6o6EzeGM3SKhXvdUMgTUHYT6XHc8QX0soEiI4KzRj+asaQcFeQ==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -12814,7 +12837,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-qdsiL57Dm8bOj7zDcA0/9mqAfEH5hoP9njebMo1532SknPDi4SPYJMbVu+BJjgQU6+lKQMwou/2bg+RbUO4jvg==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-sP/4y9UfdU0W7x1Ebqtt/J4azVot+wgtwSdlQjgtjCpi5305/5/rNwZz5Pvvj22uPyfR2Y32cGQAPwX3MNmSng==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -12878,7 +12901,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-1ZuQ7lh7QYH0vjFB6ic4037CSkCSBnVPSsZ9G7vSKwo5JQedOvlgVZE9x2WyTC8ra6vQxlhDFzrxp04cxfUTqg==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-exu3n35aAL2CZc3EYKZCRuRfDMTQIMziS8mKQJ3KL77/kPT8/d+Oxi4QCQqrkSwuExy0gEAp1zWkTaRe/nBYWQ==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -12942,7 +12965,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-sjA/G4re6n6KndEucya17jvkfUfRoibYNKIwGAUMog4nC7miSkZCxVWtAZp1rnURGYVXOgmUav873aLjn4o+Uw==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-0ejARiJ9kUN06tOlJVqYlqWgadzdd0c75IufmSuYMmFsjkHGCxsZzNezsH+kDukVvqGICn+xUr3v7Jql9r2DSw==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -13005,7 +13028,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-yStdXjcYny86/6+RfAyKluotkTwPQ4d/LYVhjBWaxCc88LXk5HdtArSTKb+auAND2uUc6RApBlbeSCoE7djWGQ==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-uAwhdYneatpGl5HHKYAR9WthtQgYxjkPmntEZDWoT/K36a+JzwWJYXEtzF3ywlnmjTClqRgGjyyzUIw49tUghg==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -13123,7 +13146,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-uMadY47m49wYsrwiwfixo200rupY5ZGqb+Fpb7RX3KmOFN4+jiPI4NWbnFIWCAyoTaPdFzW8JqwTVgG6K2ceRQ==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-9SXSv8BWZ2vZLkFN7eihECaI7N4vod/kDzDj2LqOILwksPk7+MWk4dk2QAalX1NXOnTZBZ3AlR/DoPsWDqlKEA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -13183,7 +13206,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-r2RjGlzNxIGQdyCPamaEfZjD8beahEX2BOHuDZkbDg3g5yerq7COtmzV5xKthySw4rKp29SwLkRjWW1BgYYeQg==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-bQN8CsRkAxsvoG68yB0xkDv2qxb+Sbpxcs0ropxRF/B21CoDnrfMg+pMo8P/1bd3q4XuG7Ep2mT1SiV6xd+AUw==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -13236,7 +13259,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-WUjkNN/9M8lZfpxFtXhuoLnu/mWSKbXII7EYvMR9uyjs20y1/yT9SffkHeL70xDRRn0xtbtmfkzDhx8QnsCMyQ==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-00g29uAc1KbhfqBNEUnEBbkT3Vvfsozyvm0/KND6ls6CPh64M6WSXV0nlVWd219na1T/sBCJM5tbaQrXfNOuUQ==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -13292,7 +13315,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-PtwgQu0nH/7X7+EHbC+3FV74Z6em42JnitUEeObi4yjInM3a7A7ITL/80xdA0FjM7MV2dK//Ze16Tk6B2W/DxA==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-77DTPadP3hveyoCnv6KMuaKAMYr077MyV181NYefSkNDx8wVVtejbwcY6w+HWPwqtpeBswTgmCNhHswTtvJP8A==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -13345,7 +13368,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-Bo71kbnQQKtYESpl4wCwQ5EI4QEKGPVuiSIGtY21qj/mRvYt9qeUd+WnUGqhjBtp3vybn/I053sS3YBtAddbZw==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-YCAW3RcvGQpQD/9CW7kpEiWI7ZUs2gzyDlsh7bV3XoH5loDkKwUbU4W2NGnSV6dzzrwkV81NHf4zEVUVbuSiNA==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -13391,7 +13414,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-6H+/OE0Cl6lLymcfOL/ZYgOnTlCq4rf28I1TxkPAzc+ar/dk+D3LVpCE0jnk9+w0YYGvjDSl/PzPVQaQ87HCcA==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-FoF8l3ScgxtmUbJWWdocQYvptdNco4HCi6IR4eJO/38G4YQwXPUJMoEJsUvY3d6EEDTJ39QjoRxBq696AIDI4Q==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -13412,7 +13435,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-z1+CQPV46gSPOJnIANciOawQB/+71DczYTUsWkh9ymT+SG3PG4BqyRdcqiDJIyakQU/2i9aomcqVt2zuJfUG8Q==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-0m0uxwNtQJy4wsc6O4QqC0jWk5CK2Jppeu/RegYolnafUd1FJGUD88oBQhUsgV4AZwHWBo27wWCpfAtLBUVJ3Q==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -13458,7 +13481,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-3FyBd1trKt9lA4MvtAhkJypaSqKy2zGUX5r1BuGfVX/6EhIVOq33rZE+l/ZIu0I9fwNWT5/lCXuSE0+pJycUzQ==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-p/NXM+Alycb/JLwMtDbJO9sNQuR6fqwt8qLNsdp2L4eY0V+1K+kpJruMAY2bqT+KyL1KVaqvazZ5jWi7Zuslbg==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -13750,7 +13773,7 @@ packages: dev: false file:projects/video-analyzer-edge.tgz: - resolution: {integrity: sha512-xXkxSClLXPT9c3iX3Clzx4kv+sfB5FBaQyq8gUibUfcq9JnDZo1lea3HASBYf/ZQnAjN+2hFGulLMUwkOV7gEw==, tarball: file:projects/video-analyzer-edge.tgz} + resolution: {integrity: sha512-Xv3ShfZUgNx8q9UT/CkNKfXvHcowA8arWY8ve9VPN2KeG/muHEPIN+VmJdJRpmXdSe/NGcDNOq+X6qRw81RLfQ==, tarball: file:projects/video-analyzer-edge.tgz} name: '@rush-temp/video-analyzer-edge' version: 0.0.0 dependencies: @@ -13797,7 +13820,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-v6i4GGa5vnm0XCHOuGvEi3xae+UniwEbMypQJN6qGfRwxeqo6e7vE1YR3aYuFn2KcS8EILGHX90GQtUDAXQL9g==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-pyNur8Z/dtucLXS7sAC400jpC+fsPn5vzow51FNm2lvMs/h3S/KgYEPHjqYTpnkCLwlaeS3nLHbq53cPZjvJmw==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -13858,7 +13881,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-7tybu1DUua3JKog73h74wTld0NDEM8DJBu3Q8WYzgXVQMcxEQwRCvKv+/pZJSMYc1qtLyc2Dj8ypsrpeVsdu7w==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-voOO1BhkBHfGbruIHzarGd8MBtsgNqBgjHFjPPOq3eDG15JPqvXam7ZSMZfzhdfSQbEcBE7e9/jwtw+1K7UVfQ==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/rush.json b/rush.json index 0bdf615ba0d5..f3651c2fe2ca 100644 --- a/rush.json +++ b/rush.json @@ -1,7 +1,7 @@ /** * This is the main configuration file for Rush. * For full documentation, please see https://rushjs.io - */ { + */{ "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json", /** * (Required) This specifies the version of the Rush engine to be used in this repo. @@ -1155,6 +1155,11 @@ "packageName": "@azure/arm-relay", "projectFolder": "sdk/relay/arm-relay", "versionPolicyName": "management" + }, + { + "packageName": "@azure/arm-confluent", + "projectFolder": "sdk/confluent/arm-confluent", + "versionPolicyName": "management" } ] -} +} \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/CHANGELOG.md b/sdk/confluent/arm-confluent/CHANGELOG.md new file mode 100644 index 000000000000..a670851bebce --- /dev/null +++ b/sdk/confluent/arm-confluent/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 3.0.0 (2021-12-14) + +The package of @azure/arm-confluent is using our next generation design principles since version 3.0.0, which contains breaking changes. + +To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). + +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/confluent/arm-confluent/LICENSE.txt b/sdk/confluent/arm-confluent/LICENSE similarity index 99% rename from sdk/confluent/arm-confluent/LICENSE.txt rename to sdk/confluent/arm-confluent/LICENSE index 2d3163745319..ccb63b166732 100644 --- a/sdk/confluent/arm-confluent/LICENSE.txt +++ b/sdk/confluent/arm-confluent/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/README.md b/sdk/confluent/arm-confluent/README.md index 41008e2f9e0c..dc98134a02eb 100644 --- a/sdk/confluent/arm-confluent/README.md +++ b/sdk/confluent/arm-confluent/README.md @@ -1,109 +1,98 @@ -## Azure ConfluentManagementClient SDK for JavaScript +# Azure ConfluentManagement client library for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ConfluentManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ConfluentManagement client. + + + +[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confluent/arm-confluent) | +[Package (NPM)](https://www.npmjs.com/package/@azure/arm-confluent) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-confluent) | +[Samples](https://github.com/Azure-Samples/azure-samples-js-management) + +## Getting started ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites -You must have an [Azure subscription](https://azure.microsoft.com/free/). +- An [Azure subscription][azure_sub]. -### How to install +### Install the `@azure/arm-confluent` package -To use this SDK in your project, you will need to install two packages. -- `@azure/arm-confluent` that contains the client. -- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. +Install the Azure ConfluentManagement client library for JavaScript with `npm`: -Install both packages using the below command: ```bash -npm install --save @azure/arm-confluent @azure/identity +npm install @azure/arm-confluent ``` -> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. -If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. +### Create and authenticate a `ConfluentManagementClient` + +To create a client object to access the Azure ConfluentManagement API, you will need the `endpoint` of your Azure ConfluentManagement resource and a `credential`. The Azure ConfluentManagement client can use Azure Active Directory credentials to authenticate. +You can find the endpoint for your Azure ConfluentManagement resource in the [Azure Portal][azure_portal]. -### How to use +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). -- If you are writing a client side browser application, - - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. - - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. -- If you are writing a server side application, - - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) - - Complete the set up steps required by the credential if any. - - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: -In the below samples, we pass the credential and the Azure subscription id to instantiate the client. -Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +```bash +npm install @azure/identity +``` -#### nodejs - Authentication, client creation, and list marketplaceAgreements as an example written in JavaScript. +You will also need to **register a new AAD application and grant access to Azure ConfluentManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). +Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. -##### Sample code +For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). ```javascript -const { DefaultAzureCredential } = require("@azure/identity"); const { ConfluentManagementClient } = require("@azure/arm-confluent"); -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples -// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. -const creds = new DefaultAzureCredential(); -const client = new ConfluentManagementClient(creds, subscriptionId); - -client.marketplaceAgreements.list().then((result) => { - console.log("The result is:"); - console.log(result); -}).catch((err) => { - console.log("An error occurred:"); - console.error(err); -}); +const { DefaultAzureCredential } = require("@azure/identity"); +const subscriptionId = "00000000-0000-0000-0000-000000000000"; +const client = new ConfluentManagementClient(new DefaultAzureCredential(), subscriptionId); ``` -#### browser - Authentication, client creation, and list marketplaceAgreements as an example written in JavaScript. - -In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. - - Note down the client Id from the previous step and use it in the browser sample below. - -##### Sample code - -- index.html - -```html - - - - @azure/arm-confluent sample - - - - - - - + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + +## Key concepts + +### ConfluentManagementClient + +`ConfluentManagementClient` is the primary interface for developers using the Azure ConfluentManagement client library. Explore the methods on this client object to understand the different features of the Azure ConfluentManagement service that you can access. + +## Troubleshooting + +### Logging + +Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: + +```javascript +const { setLogLevel } = require("@azure/logger"); +setLogLevel("info"); ``` +For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). + +## Next steps + +Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. + +## Contributing + +If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. + ## Related projects -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fconfluent%2Farm-confluent%2FREADME.png) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/confluent/arm-confluent/README.png) +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azure_sub]: https://azure.microsoft.com/free/ +[azure_portal]: https://portal.azure.com +[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/confluent/arm-confluent/_meta.json b/sdk/confluent/arm-confluent/_meta.json new file mode 100644 index 000000000000..174f13a02f5e --- /dev/null +++ b/sdk/confluent/arm-confluent/_meta.json @@ -0,0 +1,7 @@ +{ + "commit": "b6dd78f9433009d5a36202d3969fb023df5f1868", + "readme": "specification/confluent/resource-manager/readme.md", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/confluent/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" +} \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/api-extractor.json b/sdk/confluent/arm-confluent/api-extractor.json new file mode 100644 index 000000000000..0f154ad4e4ff --- /dev/null +++ b/sdk/confluent/arm-confluent/api-extractor.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", + "docModel": { "enabled": true }, + "apiReport": { "enabled": true, "reportFolder": "./review" }, + "dtsRollup": { + "enabled": true, + "untrimmedFilePath": "", + "publicTrimmedFilePath": "./types/arm-confluent.d.ts" + }, + "messages": { + "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "extractorMessageReporting": { + "ae-missing-release-tag": { "logLevel": "none" }, + "ae-unresolved-link": { "logLevel": "none" } + } + } +} diff --git a/sdk/confluent/arm-confluent/package.json b/sdk/confluent/arm-confluent/package.json index da71fa1ac326..e20add78be57 100644 --- a/sdk/confluent/arm-confluent/package.json +++ b/sdk/confluent/arm-confluent/package.json @@ -1,58 +1,91 @@ { "name": "@azure/arm-confluent", + "sdk-type": "mgmt", "author": "Microsoft Corporation", - "description": "ConfluentManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.1.0", + "description": "A generated SDK for ConfluentManagementClient.", + "version": "3.0.0", + "engines": { "node": ">=12.0.0" }, "dependencies": { - "@azure/ms-rest-azure-js": "^2.1.0", - "@azure/ms-rest-js": "^2.2.0", - "@azure/core-auth": "^1.1.4", - "tslib": "^1.10.0" + "@azure/core-lro": "^2.2.0", + "@azure/abort-controller": "^1.0.0", + "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.0.0", + "@azure/core-auth": "^1.3.0", + "@azure/core-rest-pipeline": "^1.1.0", + "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", - "main": "./dist/arm-confluent.js", - "module": "./esm/confluentManagementClient.js", - "types": "./esm/confluentManagementClient.d.ts", + "main": "./dist/index.js", + "module": "./dist-esm/src/index.js", + "types": "./types/arm-confluent.d.ts", "devDependencies": { - "typescript": "^3.6.0", - "rollup": "^1.18.0", - "rollup-plugin-node-resolve": "^5.2.0", + "@microsoft/api-extractor": "^7.18.11", + "@rollup/plugin-commonjs": "11.0.2", + "@rollup/plugin-json": "^4.0.0", + "@rollup/plugin-multi-entry": "^3.0.0", + "@rollup/plugin-node-resolve": "^8.0.0", + "mkdirp": "^1.0.4", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.6.0" + "typescript": "~4.2.0", + "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confluent/arm-confluent", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", "dist/**/*.d.ts", "dist/**/*.d.ts.map", - "esm/**/*.js", - "esm/**/*.js.map", - "esm/**/*.d.ts", - "esm/**/*.d.ts.map", + "dist-esm/**/*.js", + "dist-esm/**/*.js.map", + "dist-esm/**/*.d.ts", + "dist-esm/**/*.d.ts.map", "src/**/*.ts", "README.md", + "LICENSE", "rollup.config.js", - "tsconfig.json" + "tsconfig.json", + "review/*", + "CHANGELOG.md", + "types/*" ], "scripts": { - "build": "tsc && rollup -c rollup.config.js && npm run minify", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-confluent.js.map'\" -o ./dist/arm-confluent.min.js ./dist/arm-confluent.js", - "prepack": "npm install && npm run build" + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "api-extractor run --local", + "lint": "echo skipped", + "audit": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", + "build:node": "echo skipped", + "build:browser": "echo skipped", + "build:test": "echo skipped", + "build:samples": "echo skipped.", + "check-format": "echo skipped", + "execute:samples": "echo skipped", + "format": "echo skipped", + "test": "npm run integration-test", + "test:node": "echo skipped", + "test:browser": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:browser": "echo skipped", + "docs": "echo skipped" }, "sideEffects": false, "autoPublish": true diff --git a/sdk/confluent/arm-confluent/review/arm-confluent.api.md b/sdk/confluent/arm-confluent/review/arm-confluent.api.md new file mode 100644 index 000000000000..68152a7c9de6 --- /dev/null +++ b/sdk/confluent/arm-confluent/review/arm-confluent.api.md @@ -0,0 +1,352 @@ +## API Report File for "@azure/arm-confluent" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import * as coreAuth from '@azure/core-auth'; +import * as coreClient from '@azure/core-client'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; + +// @public +export interface ConfluentAgreementResource { + accepted?: boolean; + readonly id?: string; + licenseTextLink?: string; + readonly name?: string; + plan?: string; + privacyPolicyLink?: string; + product?: string; + publisher?: string; + retrieveDatetime?: Date; + signature?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface ConfluentAgreementResourceListResponse { + nextLink?: string; + value?: ConfluentAgreementResource[]; +} + +// @public (undocumented) +export class ConfluentManagementClient extends coreClient.ServiceClient { + // (undocumented) + $host: string; + constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ConfluentManagementClientOptionalParams); + // (undocumented) + apiVersion: string; + // (undocumented) + marketplaceAgreements: MarketplaceAgreements; + // (undocumented) + organization: Organization; + // (undocumented) + organizationOperations: OrganizationOperations; + // (undocumented) + subscriptionId: string; + // (undocumented) + validations: Validations; +} + +// @public +export interface ConfluentManagementClientOptionalParams extends coreClient.ServiceClientOptions { + $host?: string; + apiVersion?: string; + endpoint?: string; +} + +// @public +export type CreatedByType = string; + +// @public +export interface ErrorResponseBody { + readonly code?: string; + readonly details?: ErrorResponseBody[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export enum KnownCreatedByType { + // (undocumented) + Application = "Application", + // (undocumented) + Key = "Key", + // (undocumented) + ManagedIdentity = "ManagedIdentity", + // (undocumented) + User = "User" +} + +// @public +export enum KnownProvisionState { + // (undocumented) + Accepted = "Accepted", + // (undocumented) + Canceled = "Canceled", + // (undocumented) + Creating = "Creating", + // (undocumented) + Deleted = "Deleted", + // (undocumented) + Deleting = "Deleting", + // (undocumented) + Failed = "Failed", + // (undocumented) + NotSpecified = "NotSpecified", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Updating = "Updating" +} + +// @public +export enum KnownSaaSOfferStatus { + // (undocumented) + Failed = "Failed", + // (undocumented) + InProgress = "InProgress", + // (undocumented) + PendingFulfillmentStart = "PendingFulfillmentStart", + // (undocumented) + Reinstated = "Reinstated", + // (undocumented) + Started = "Started", + // (undocumented) + Subscribed = "Subscribed", + // (undocumented) + Succeeded = "Succeeded", + // (undocumented) + Suspended = "Suspended", + // (undocumented) + Unsubscribed = "Unsubscribed", + // (undocumented) + Updating = "Updating" +} + +// @public +export interface MarketplaceAgreements { + create(options?: MarketplaceAgreementsCreateOptionalParams): Promise; + list(options?: MarketplaceAgreementsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface MarketplaceAgreementsCreateOptionalParams extends coreClient.OperationOptions { + body?: ConfluentAgreementResource; +} + +// @public +export type MarketplaceAgreementsCreateResponse = ConfluentAgreementResource; + +// @public +export interface MarketplaceAgreementsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type MarketplaceAgreementsListNextResponse = ConfluentAgreementResourceListResponse; + +// @public +export interface MarketplaceAgreementsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse; + +// @public +export interface OfferDetail { + id: string; + planId: string; + planName: string; + publisherId: string; + readonly status?: SaaSOfferStatus; + termUnit: string; +} + +// @public +export interface OperationDisplay { + description?: string; + operation?: string; + provider?: string; + resource?: string; +} + +// @public +export interface OperationListResult { + nextLink?: string; + value?: OperationResult[]; +} + +// @public +export interface OperationResult { + display?: OperationDisplay; + isDataAction?: boolean; + name?: string; +} + +// @public +export interface Organization { + beginCreate(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise, OrganizationCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise; + get(resourceGroupName: string, organizationName: string, options?: OrganizationGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: OrganizationListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + update(resourceGroupName: string, organizationName: string, options?: OrganizationUpdateOptionalParams): Promise; +} + +// @public +export interface OrganizationCreateOptionalParams extends coreClient.OperationOptions { + body?: OrganizationResource; + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type OrganizationCreateResponse = OrganizationResource; + +// @public +export interface OrganizationDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface OrganizationGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetResponse = OrganizationResource; + +// @public +export interface OrganizationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListByResourceGroupNextResponse = OrganizationResourceListResult; + +// @public +export interface OrganizationListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListByResourceGroupResponse = OrganizationResourceListResult; + +// @public +export interface OrganizationListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListBySubscriptionNextResponse = OrganizationResourceListResult; + +// @public +export interface OrganizationListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult; + +// @public +export interface OrganizationOperations { + list(options?: OrganizationOperationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OrganizationOperationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationOperationsListNextResponse = OperationListResult; + +// @public +export interface OrganizationOperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationOperationsListResponse = OperationListResult; + +// @public +export interface OrganizationResource { + readonly createdTime?: Date; + readonly id?: string; + location?: string; + readonly name?: string; + offerDetail: OfferDetail; + readonly organizationId?: string; + readonly provisioningState?: ProvisionState; + readonly ssoUrl?: string; + readonly systemData?: SystemData; + tags?: { + [propertyName: string]: string; + }; + readonly type?: string; + userDetail: UserDetail; +} + +// @public +export interface OrganizationResourceListResult { + nextLink?: string; + value?: OrganizationResource[]; +} + +// @public +export interface OrganizationResourceUpdate { + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface OrganizationUpdateOptionalParams extends coreClient.OperationOptions { + body?: OrganizationResourceUpdate; +} + +// @public +export type OrganizationUpdateResponse = OrganizationResource; + +// @public +export type ProvisionState = string; + +// @public +export interface ResourceProviderDefaultErrorResponse { + readonly error?: ErrorResponseBody; +} + +// @public +export type SaaSOfferStatus = string; + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface UserDetail { + emailAddress: string; + firstName?: string; + lastName?: string; +} + +// @public +export interface Validations { + validateOrganization(resourceGroupName: string, organizationName: string, body: OrganizationResource, options?: ValidationsValidateOrganizationOptionalParams): Promise; +} + +// @public +export interface ValidationsValidateOrganizationOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ValidationsValidateOrganizationResponse = OrganizationResource; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/sdk/confluent/arm-confluent/rollup.config.js b/sdk/confluent/arm-confluent/rollup.config.js index 1a686a0a4a89..9be1955eb7f1 100644 --- a/sdk/confluent/arm-confluent/rollup.config.js +++ b/sdk/confluent/arm-confluent/rollup.config.js @@ -1,37 +1,188 @@ -import rollup from "rollup"; -import nodeResolve from "rollup-plugin-node-resolve"; -import sourcemaps from "rollup-plugin-sourcemaps"; - -/** - * @type {rollup.RollupFileOptions} - */ -const config = { - input: "./esm/confluentManagementClient.js", - external: [ - "@azure/ms-rest-js", - "@azure/ms-rest-azure-js" - ], - output: { - file: "./dist/arm-confluent.js", - format: "umd", - name: "Azure.ArmConfluent", - sourcemap: true, - globals: { - "@azure/ms-rest-js": "msRest", - "@azure/ms-rest-azure-js": "msRestAzure" - }, - banner: `/* +/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */` - }, - plugins: [ - nodeResolve({ mainFields: ['module', 'main'] }), - sourcemaps() - ] + */ + +import nodeResolve from "@rollup/plugin-node-resolve"; +import cjs from "@rollup/plugin-commonjs"; +import sourcemaps from "rollup-plugin-sourcemaps"; +import multiEntry from "@rollup/plugin-multi-entry"; +import json from "@rollup/plugin-json"; + +import nodeBuiltins from "builtin-modules"; + +/** + * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. + * + * NOTE: this manual configuration is only needed because OpenTelemetry uses an + * __exportStar downleveled helper function to declare its exports which confuses + * rollup's automatic discovery mechanism. + * + * @returns an object reference that can be `...`'d into your cjs() configuration. + */ +export function openTelemetryCommonJs() { + const namedExports = {}; + + for (const key of [ + "@opentelemetry/api", + "@azure/core-tracing/node_modules/@opentelemetry/api" + ]) { + namedExports[key] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "SpanStatusCode", + "getSpanContext", + "setSpanContext" + ]; + } + + const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; + + for (const version of releasedOpenTelemetryVersions) { + namedExports[ + // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. + `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` + ] = [ + "SpanKind", + "TraceFlags", + "getSpan", + "setSpan", + "StatusCode", + "CanonicalCode", + "getSpanContext", + "setSpanContext" + ]; + } + + return namedExports; +} + +// #region Warning Handler + +/** + * A function that can determine whether a rollupwarning should be ignored. If + * the function returns `true`, then the warning will not be displayed. + */ + +function ignoreNiseSinonEvalWarnings(warning) { + return ( + warning.code === "EVAL" && + warning.id && + (warning.id.includes("node_modules/nise") || + warning.id.includes("node_modules/sinon")) === true + ); +} + +function ignoreChaiCircularDependencyWarnings(warning) { + return ( + warning.code === "CIRCULAR_DEPENDENCY" && + warning.importer && warning.importer.includes("node_modules/chai") === true + ); +} + +const warningInhibitors = [ + ignoreChaiCircularDependencyWarnings, + ignoreNiseSinonEvalWarnings +]; + +/** + * Construct a warning handler for the shared rollup configuration + * that ignores certain warnings that are not relevant to testing. + */ +function makeOnWarnForTesting() { + return (warning, warn) => { + // If every inhibitor returns false (i.e. no inhibitors), then show the warning + if (warningInhibitors.every((inhib) => !inhib(warning))) { + warn(warning); + } + }; +} + +// #endregion + +function makeBrowserTestConfig() { + const config = { + input: { + include: ["dist-esm/test/**/*.spec.js"], + exclude: ["dist-esm/test/**/node/**"] + }, + output: { + file: `dist-test/index.browser.js`, + format: "umd", + sourcemap: true + }, + preserveSymlinks: false, + plugins: [ + multiEntry({ exports: false }), + nodeResolve({ + mainFields: ["module", "browser"] + }), + cjs({ + namedExports: { + // Chai's strange internal architecture makes it impossible to statically + // analyze its exports. + chai: [ + "version", + "use", + "util", + "config", + "expect", + "should", + "assert" + ], + ...openTelemetryCommonJs() + } + }), + json(), + sourcemaps() + //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) + ], + onwarn: makeOnWarnForTesting(), + // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0, + // rollup started respecting the "sideEffects" field in package.json. Since + // our package.json sets "sideEffects=false", this also applies to test + // code, which causes all tests to be removed by tree-shaking. + treeshake: false + }; + + return config; +} + +const defaultConfigurationOptions = { + disableBrowserBundle: false }; -export default config; +export function makeConfig(pkg, options) { + options = { + ...defaultConfigurationOptions, + ...(options || {}) + }; + + const baseConfig = { + // Use the package's module field if it has one + input: pkg["module"] || "dist-esm/src/index.js", + external: [ + ...nodeBuiltins, + ...Object.keys(pkg.dependencies), + ...Object.keys(pkg.devDependencies) + ], + output: { file: "dist/index.js", format: "cjs", sourcemap: true }, + preserveSymlinks: false, + plugins: [sourcemaps(), nodeResolve(), cjs()] + }; + + const config = [baseConfig]; + + if (!options.disableBrowserBundle) { + config.push(makeBrowserTestConfig()); + } + + return config; +} + +export default makeConfig(require("./package.json")); diff --git a/sdk/confluent/arm-confluent/src/confluentManagementClient.ts b/sdk/confluent/arm-confluent/src/confluentManagementClient.ts index fc7af6cbdb46..d1f3f38f6ba0 100644 --- a/sdk/confluent/arm-confluent/src/confluentManagementClient.ts +++ b/sdk/confluent/arm-confluent/src/confluentManagementClient.ts @@ -3,54 +3,89 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; -import * as operations from "./operations"; -import { ConfluentManagementClientContext } from "./confluentManagementClientContext"; +import * as coreClient from "@azure/core-client"; +import * as coreAuth from "@azure/core-auth"; +import { + MarketplaceAgreementsImpl, + OrganizationOperationsImpl, + OrganizationImpl, + ValidationsImpl +} from "./operations"; +import { + MarketplaceAgreements, + OrganizationOperations, + Organization, + Validations +} from "./operationsInterfaces"; +import { ConfluentManagementClientOptionalParams } from "./models"; -class ConfluentManagementClient extends ConfluentManagementClientContext { - // Operation groups - marketplaceAgreements: operations.MarketplaceAgreements; - organizationOperations: operations.OrganizationOperations; - organization: operations.Organization; - validations: operations.Validations; +export class ConfluentManagementClient extends coreClient.ServiceClient { + $host: string; + apiVersion: string; + subscriptionId: string; /** * Initializes a new instance of the ConfluentManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. Credentials - * implementing the TokenCredential interface from the @azure/identity package are recommended. For - * more information about these credentials, see - * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the - * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and - * @azure/ms-rest-browserauth are also supported. + * @param credentials Subscription credentials which uniquely identify client subscription. * @param subscriptionId Microsoft Azure subscription id - * @param [options] The parameter options + * @param options The parameter options */ constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, + credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: Models.ConfluentManagementClientOptions + options?: ConfluentManagementClientOptionalParams ) { - super(credentials, subscriptionId, options); - this.marketplaceAgreements = new operations.MarketplaceAgreements(this); - this.organizationOperations = new operations.OrganizationOperations(this); - this.organization = new operations.Organization(this); - this.validations = new operations.Validations(this); - } -} + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: ConfluentManagementClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-confluent/3.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; -// Operation Specifications + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; -export { - ConfluentManagementClient, - ConfluentManagementClientContext, - Models as ConfluentManagementModels, - Mappers as ConfluentManagementMappers -}; -export * from "./operations"; + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-12-01"; + this.marketplaceAgreements = new MarketplaceAgreementsImpl(this); + this.organizationOperations = new OrganizationOperationsImpl(this); + this.organization = new OrganizationImpl(this); + this.validations = new ValidationsImpl(this); + } + + marketplaceAgreements: MarketplaceAgreements; + organizationOperations: OrganizationOperations; + organization: Organization; + validations: Validations; +} diff --git a/sdk/confluent/arm-confluent/src/confluentManagementClientContext.ts b/sdk/confluent/arm-confluent/src/confluentManagementClientContext.ts deleted file mode 100644 index e40c2e8002a2..000000000000 --- a/sdk/confluent/arm-confluent/src/confluentManagementClientContext.ts +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as Models from "./models"; -import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; - -const packageName = "@azure/arm-confluent"; -const packageVersion = "2.1.0"; - -export class ConfluentManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials | TokenCredential; - apiVersion?: string; - subscriptionId: string; - - /** - * Initializes a new instance of the ConfluentManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. Credentials - * implementing the TokenCredential interface from the @azure/identity package are recommended. For - * more information about these credentials, see - * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the - * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and - * @azure/ms-rest-browserauth are also supported. - * @param subscriptionId Microsoft Azure subscription id - * @param [options] The parameter options - */ - constructor( - credentials: msRest.ServiceClientCredentials | TokenCredential, - subscriptionId: string, - options?: Models.ConfluentManagementClientOptions - ) { - if (credentials == undefined) { - throw new Error("'credentials' cannot be null."); - } - if (subscriptionId == undefined) { - throw new Error("'subscriptionId' cannot be null."); - } - - if (!options) { - options = {}; - } - if (!options.userAgent) { - const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); - options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; - } - - super(credentials, options); - - this.apiVersion = "2021-03-01-preview"; - this.acceptLanguage = "en-US"; - this.longRunningOperationRetryTimeout = 30; - this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; - this.requestContentType = "application/json; charset=utf-8"; - this.credentials = credentials; - this.subscriptionId = subscriptionId; - - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { - this.acceptLanguage = options.acceptLanguage; - } - if ( - options.longRunningOperationRetryTimeout !== null && - options.longRunningOperationRetryTimeout !== undefined - ) { - this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; - } - } -} diff --git a/sdk/confluent/arm-confluent/src/models/validationsMappers.ts b/sdk/confluent/arm-confluent/src/index.ts similarity index 52% rename from sdk/confluent/arm-confluent/src/models/validationsMappers.ts rename to sdk/confluent/arm-confluent/src/index.ts index 0e323068c0f4..64e20674e897 100644 --- a/sdk/confluent/arm-confluent/src/models/validationsMappers.ts +++ b/sdk/confluent/arm-confluent/src/index.ts @@ -6,13 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { - BaseResource, - ConfluentAgreementResource, - ErrorResponseBody, - OfferDetail, - OrganizationResource, - ResourceProviderDefaultErrorResponse, - SystemData, - UserDetail -} from "../models/mappers"; +/// +export * from "./models"; +export { ConfluentManagementClient } from "./confluentManagementClient"; +export * from "./operationsInterfaces"; diff --git a/sdk/confluent/arm-confluent/src/lroImpl.ts b/sdk/confluent/arm-confluent/src/lroImpl.ts new file mode 100644 index 000000000000..518d5f053b4e --- /dev/null +++ b/sdk/confluent/arm-confluent/src/lroImpl.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { 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" + }); + } +} diff --git a/sdk/confluent/arm-confluent/src/models/index.ts b/sdk/confluent/arm-confluent/src/models/index.ts index 8553b11ca301..e0c358962f72 100644 --- a/sdk/confluent/arm-confluent/src/models/index.ts +++ b/sdk/confluent/arm-confluent/src/models/index.ts @@ -6,707 +6,432 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; -export { BaseResource, CloudError }; - -/** - * 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. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - 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. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - lastModifiedByType?: CreatedByType; - /** - * The timestamp of resource last modification (UTC) - */ - lastModifiedAt?: Date; +/** Response of a list operation. */ +export interface ConfluentAgreementResourceListResponse { + /** Results of a list operation. */ + value?: ConfluentAgreementResource[]; + /** Link to the next set of results, if any. */ + nextLink?: string; } -/** - * Agreement Terms definition - */ -export interface ConfluentAgreementResource extends BaseResource { +/** Agreement Terms definition */ +export interface ConfluentAgreementResource { /** * The ARM id of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** * The name of the agreement. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The type of the agreement. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; /** * Metadata pertaining to creation and last modification of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; - /** - * Publisher identifier string. - */ + /** Publisher identifier string. */ publisher?: string; - /** - * Product identifier string. - */ + /** Product identifier string. */ product?: string; - /** - * Plan identifier string. - */ + /** Plan identifier string. */ plan?: string; - /** - * Link to HTML with Microsoft and Publisher terms. - */ + /** Link to HTML with Microsoft and Publisher terms. */ licenseTextLink?: string; - /** - * Link to the privacy policy of the publisher. - */ + /** Link to the privacy policy of the publisher. */ privacyPolicyLink?: string; - /** - * Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. - */ + /** Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. */ retrieveDatetime?: Date; - /** - * Terms signature. - */ + /** Terms signature. */ signature?: string; - /** - * If any version of the terms have been accepted, otherwise false. - */ + /** If any version of the terms have been accepted, otherwise false. */ accepted?: boolean; } -/** - * The object that represents the operation. - */ -export interface OperationDisplay { - /** - * Service provider: Microsoft.Confluent - */ - provider?: string; - /** - * Type on which the operation is performed, e.g., 'clusters'. - */ - resource?: string; - /** - * Operation type, e.g., read, write, delete, etc. - */ - operation?: string; - /** - * Description of the operation, e.g., 'Write confluent'. - */ - description?: 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; } -/** - * An Confluent REST API operation. - */ -export interface OperationResult { - /** - * Operation name: {provider}/{resource}/{operation} - */ - name?: string; - /** - * The object that represents the operation. - */ - display?: OperationDisplay; +/** Default error response for resource provider */ +export interface ResourceProviderDefaultErrorResponse { /** - * Indicates whether the operation is a data action + * Response body of Error + * NOTE: This property will not be serialized. It can only be populated by the server. */ - isDataAction?: boolean; + readonly error?: ErrorResponseBody; } -/** - * Response body of Error - * @summary ErrorResponseBody - */ +/** Response body of Error */ export interface ErrorResponseBody { /** * Error code - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** * Error message - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly message?: string; /** * Error target - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly target?: string; /** * Error detail - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly details?: ErrorResponseBody[]; } -/** - * Default error response for resource provider - * @summary ResourceProviderDefaultErrorResponse - */ -export interface ResourceProviderDefaultErrorResponse { - /** - * Response body of Error - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly error?: ErrorResponseBody; +/** Result of GET request to list Confluent operations. */ +export interface OperationListResult { + /** List of Confluent operations supported by the Microsoft.Confluent provider. */ + value?: OperationResult[]; + /** URL to get the next set of operation list results if there are any. */ + nextLink?: string; } -/** - * Confluent Offer detail - */ -export interface OfferDetail { - /** - * Publisher Id - */ - publisherId: string; - /** - * Offer Id - */ - id: string; - /** - * Offer Plan Id - */ - planId: string; - /** - * Offer Plan Name - */ - planName: string; - /** - * Offer Plan Term unit - */ - termUnit: string; - /** - * SaaS Offer Status. Possible values include: 'Started', 'PendingFulfillmentStart', - * 'InProgress', 'Subscribed', 'Suspended', 'Reinstated', 'Succeeded', 'Failed', 'Unsubscribed', - * 'Updating' - */ - status?: SaaSOfferStatus; +/** An Confluent REST API operation. */ +export interface OperationResult { + /** Operation name: {provider}/{resource}/{operation} */ + name?: string; + /** The object that represents the operation. */ + display?: OperationDisplay; + /** Indicates whether the operation is a data action */ + isDataAction?: boolean; } -/** - * Subscriber detail - */ -export interface UserDetail { - /** - * First name - */ - firstName?: string; - /** - * Last name - */ - lastName?: string; - /** - * Email address - */ - emailAddress: string; +/** The object that represents the operation. */ +export interface OperationDisplay { + /** Service provider: Microsoft.Confluent */ + provider?: string; + /** Type on which the operation is performed, e.g., 'clusters'. */ + resource?: string; + /** Operation type, e.g., read, write, delete, etc. */ + operation?: string; + /** Description of the operation, e.g., 'Write confluent'. */ + description?: string; } -/** - * Organization resource. - */ -export interface OrganizationResource extends BaseResource { +/** The response of a list operation. */ +export interface OrganizationResourceListResult { + /** Result of a list operation. */ + value?: OrganizationResource[]; + /** Link to the next set of results, if any. */ + nextLink?: string; +} + +/** Organization resource. */ +export interface OrganizationResource { /** * The ARM id of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** * The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; /** * Metadata pertaining to creation and last modification of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly systemData?: SystemData; + /** Organization resource tags */ + tags?: { [propertyName: string]: string }; + /** Location of Organization resource */ + location?: string; /** * The creation time of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly createdTime?: Date; /** - * Provision states for confluent RP. Possible values include: 'Accepted', 'Creating', - * 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled', 'Deleted', 'NotSpecified' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Provision states for confluent RP + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisionState; /** * Id of the Confluent organization. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly organizationId?: string; /** * SSO url for the Confluent organization. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ssoUrl?: string; - /** - * Confluent offer detail - */ + /** Confluent offer detail */ offerDetail: OfferDetail; - /** - * Subscriber detail - */ + /** Subscriber detail */ userDetail: UserDetail; - /** - * Organization resource tags - */ - tags?: { [propertyName: string]: string }; - /** - * Location of Organization resource - */ - location?: string; } -/** - * Organization Resource update - */ -export interface OrganizationResourceUpdate { +/** Confluent Offer detail */ +export interface OfferDetail { + /** Publisher Id */ + publisherId: string; + /** Offer Id */ + id: string; + /** Offer Plan Id */ + planId: string; + /** Offer Plan Name */ + planName: string; + /** Offer Plan Term unit */ + termUnit: string; /** - * ARM resource tags + * SaaS Offer Status + * NOTE: This property will not be serialized. It can only be populated by the server. */ - tags?: { [propertyName: string]: string }; + readonly status?: SaaSOfferStatus; } -/** - * Optional Parameters. - */ -export interface MarketplaceAgreementsCreateOptionalParams extends msRest.RequestOptionsBase { - /** - * Confluent Marketplace Agreement resource - */ - body?: ConfluentAgreementResource; +/** Subscriber detail */ +export interface UserDetail { + /** First name */ + firstName?: string; + /** Last name */ + lastName?: string; + /** Email address */ + emailAddress: string; } -/** - * Optional Parameters. - */ -export interface OrganizationCreateOptionalParams extends msRest.RequestOptionsBase { - /** - * Organization resource model - */ - body?: OrganizationResource; +/** Organization Resource update */ +export interface OrganizationResourceUpdate { + /** ARM resource tags */ + tags?: { [propertyName: string]: string }; } -/** - * Optional Parameters. - */ -export interface OrganizationUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * Updated Organization resource - */ - body?: OrganizationResourceUpdate; +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + User = "User", + Application = "Application", + ManagedIdentity = "ManagedIdentity", + Key = "Key" } /** - * Optional Parameters. - */ -export interface OrganizationBeginCreateOptionalParams extends msRest.RequestOptionsBase { - /** - * Organization resource model - */ - body?: OrganizationResource; + * 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 ProvisionState} that the service accepts. */ +export enum KnownProvisionState { + Accepted = "Accepted", + Creating = "Creating", + Updating = "Updating", + Deleting = "Deleting", + Succeeded = "Succeeded", + Failed = "Failed", + Canceled = "Canceled", + Deleted = "Deleted", + NotSpecified = "NotSpecified" } /** - * An interface representing ConfluentManagementClientOptions. - */ -export interface ConfluentManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; + * Defines values for ProvisionState. \ + * {@link KnownProvisionState} can be used interchangeably with ProvisionState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Accepted** \ + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Deleted** \ + * **NotSpecified** + */ +export type ProvisionState = string; + +/** Known values of {@link SaaSOfferStatus} that the service accepts. */ +export enum KnownSaaSOfferStatus { + Started = "Started", + PendingFulfillmentStart = "PendingFulfillmentStart", + InProgress = "InProgress", + Subscribed = "Subscribed", + Suspended = "Suspended", + Reinstated = "Reinstated", + Succeeded = "Succeeded", + Failed = "Failed", + Unsubscribed = "Unsubscribed", + Updating = "Updating" } /** - * @interface - * Response of a list operation. - * @extends Array - */ -export interface ConfluentAgreementResourceListResponse extends Array { - /** - * Link to the next set of results, if any. - */ - nextLink?: string; + * Defines values for SaaSOfferStatus. \ + * {@link KnownSaaSOfferStatus} can be used interchangeably with SaaSOfferStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Started** \ + * **PendingFulfillmentStart** \ + * **InProgress** \ + * **Subscribed** \ + * **Suspended** \ + * **Reinstated** \ + * **Succeeded** \ + * **Failed** \ + * **Unsubscribed** \ + * **Updating** + */ +export type SaaSOfferStatus = string; + +/** Optional parameters. */ +export interface MarketplaceAgreementsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse; + +/** Optional parameters. */ +export interface MarketplaceAgreementsCreateOptionalParams + extends coreClient.OperationOptions { + /** Confluent Marketplace Agreement resource */ + body?: ConfluentAgreementResource; } -/** - * @interface - * Result of GET request to list Confluent operations. - * @extends Array - */ -export interface OperationListResult extends Array { - /** - * URL to get the next set of operation list results if there are any. - */ - nextLink?: string; -} +/** Contains response data for the create operation. */ +export type MarketplaceAgreementsCreateResponse = ConfluentAgreementResource; -/** - * @interface - * The response of a list operation. - * @extends Array - */ -export interface OrganizationResourceListResult extends Array { - /** - * Link to the next set of results, if any. - */ - nextLink?: string; -} +/** Optional parameters. */ +export interface MarketplaceAgreementsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for CreatedByType. - * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - * @readonly - * @enum {string} - */ -export type CreatedByType = "User" | "Application" | "ManagedIdentity" | "Key"; +/** Contains response data for the listNext operation. */ +export type MarketplaceAgreementsListNextResponse = ConfluentAgreementResourceListResponse; -/** - * Defines values for ProvisionState. - * Possible values include: 'Accepted', 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', - * 'Canceled', 'Deleted', 'NotSpecified' - * @readonly - * @enum {string} - */ -export type ProvisionState = - | "Accepted" - | "Creating" - | "Updating" - | "Deleting" - | "Succeeded" - | "Failed" - | "Canceled" - | "Deleted" - | "NotSpecified"; +/** Optional parameters. */ +export interface OrganizationOperationsListOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for SaaSOfferStatus. - * Possible values include: 'Started', 'PendingFulfillmentStart', 'InProgress', 'Subscribed', - * 'Suspended', 'Reinstated', 'Succeeded', 'Failed', 'Unsubscribed', 'Updating' - * @readonly - * @enum {string} - */ -export type SaaSOfferStatus = - | "Started" - | "PendingFulfillmentStart" - | "InProgress" - | "Subscribed" - | "Suspended" - | "Reinstated" - | "Succeeded" - | "Failed" - | "Unsubscribed" - | "Updating"; +/** Contains response data for the list operation. */ +export type OrganizationOperationsListResponse = OperationListResult; -/** - * Contains response data for the list operation. - */ -export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConfluentAgreementResourceListResponse; - }; -}; +/** Optional parameters. */ +export interface OrganizationOperationsListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the create operation. - */ -export type MarketplaceAgreementsCreateResponse = ConfluentAgreementResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConfluentAgreementResource; - }; -}; +/** Contains response data for the listNext operation. */ +export type OrganizationOperationsListNextResponse = OperationListResult; -/** - * Contains response data for the listNext operation. - */ -export type MarketplaceAgreementsListNextResponse = ConfluentAgreementResourceListResponse & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConfluentAgreementResourceListResponse; - }; -}; +/** Optional parameters. */ +export interface OrganizationListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the list operation. - */ -export type OrganizationOperationsListResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; +/** Contains response data for the listBySubscription operation. */ +export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult; -/** - * Contains response data for the listNext operation. - */ -export type OrganizationOperationsListNextResponse = OperationListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OperationListResult; - }; -}; +/** Optional parameters. */ +export interface OrganizationListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the listBySubscription operation. - */ -export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResourceListResult; - }; -}; +/** Contains response data for the listByResourceGroup operation. */ +export type OrganizationListByResourceGroupResponse = OrganizationResourceListResult; -/** - * Contains response data for the listByResourceGroup operation. - */ -export type OrganizationListByResourceGroupResponse = OrganizationResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResourceListResult; - }; -}; +/** Optional parameters. */ +export interface OrganizationGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Contains response data for the get operation. - */ -export type OrganizationGetResponse = OrganizationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResource; - }; -}; +/** Contains response data for the get operation. */ +export type OrganizationGetResponse = OrganizationResource; -/** - * Contains response data for the create operation. - */ -export type OrganizationCreateResponse = OrganizationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResource; - }; -}; +/** Optional parameters. */ +export interface OrganizationCreateOptionalParams + extends coreClient.OperationOptions { + /** Organization resource model */ + body?: OrganizationResource; + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the update operation. - */ -export type OrganizationUpdateResponse = OrganizationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResource; - }; -}; +/** Contains response data for the create operation. */ +export type OrganizationCreateResponse = OrganizationResource; -/** - * Contains response data for the beginCreate operation. - */ -export type OrganizationBeginCreateResponse = OrganizationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResource; - }; -}; +/** Optional parameters. */ +export interface OrganizationUpdateOptionalParams + extends coreClient.OperationOptions { + /** Updated Organization resource */ + body?: OrganizationResourceUpdate; +} -/** - * Contains response data for the listBySubscriptionNext operation. - */ -export type OrganizationListBySubscriptionNextResponse = OrganizationResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResourceListResult; - }; -}; +/** Contains response data for the update operation. */ +export type OrganizationUpdateResponse = OrganizationResource; -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type OrganizationListByResourceGroupNextResponse = OrganizationResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResourceListResult; - }; -}; +/** Optional parameters. */ +export interface OrganizationDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** - * Contains response data for the validateOrganization operation. - */ -export type ValidationsValidateOrganizationResponse = OrganizationResource & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: OrganizationResource; - }; -}; +/** Optional parameters. */ +export interface OrganizationListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type OrganizationListBySubscriptionNextResponse = OrganizationResourceListResult; + +/** Optional parameters. */ +export interface OrganizationListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type OrganizationListByResourceGroupNextResponse = OrganizationResourceListResult; + +/** Optional parameters. */ +export interface ValidationsValidateOrganizationOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the validateOrganization operation. */ +export type ValidationsValidateOrganizationResponse = OrganizationResource; + +/** Optional parameters. */ +export interface ConfluentManagementClientOptionalParams + extends coreClient.ServiceClientOptions { + /** server parameter */ + $host?: string; + /** Api Version */ + apiVersion?: string; + /** Overrides client endpoint. */ + endpoint?: string; +} diff --git a/sdk/confluent/arm-confluent/src/models/mappers.ts b/sdk/confluent/arm-confluent/src/models/mappers.ts index 970d72114b8b..7fbaf2733eb9 100644 --- a/sdk/confluent/arm-confluent/src/models/mappers.ts +++ b/sdk/confluent/arm-confluent/src/models/mappers.ts @@ -6,87 +6,62 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; -import * as msRest from "@azure/ms-rest-js"; +import * as coreClient from "@azure/core-client"; -export const CloudError = CloudErrorMapper; -export const BaseResource = BaseResourceMapper; - -export const SystemData: msRest.CompositeMapper = { - serializedName: "systemData", +export const ConfluentAgreementResourceListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "ConfluentAgreementResourceListResponse", modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfluentAgreementResource" + } + } } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } } } } }; -export const ConfluentAgreementResource: msRest.CompositeMapper = { - serializedName: "ConfluentAgreementResource", +export const ConfluentAgreementResource: coreClient.CompositeMapper = { type: { name: "Composite", className: "ConfluentAgreementResource", modelProperties: { id: { - readOnly: true, serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { - readOnly: true, serializedName: "name", + readOnly: true, type: { name: "String" } }, type: { - readOnly: true, serializedName: "type", + readOnly: true, type: { name: "String" } }, systemData: { - readOnly: true, serializedName: "systemData", type: { name: "Composite", @@ -145,99 +120,96 @@ export const ConfluentAgreementResource: msRest.CompositeMapper = { } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "SystemData", modelProperties: { - provider: { - serializedName: "provider", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - resource: { - serializedName: "resource", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - operation: { - serializedName: "operation", + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - description: { - serializedName: "description", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const OperationResult: msRest.CompositeMapper = { - serializedName: "OperationResult", +export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationResult", + className: "ResourceProviderDefaultErrorResponse", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", + error: { + serializedName: "error", type: { name: "Composite", - className: "OperationDisplay" - } - }, - isDataAction: { - serializedName: "isDataAction", - type: { - name: "Boolean" + className: "ErrorResponseBody" } } } } }; -export const ErrorResponseBody: msRest.CompositeMapper = { - serializedName: "ErrorResponseBody", +export const ErrorResponseBody: coreClient.CompositeMapper = { type: { name: "Composite", className: "ErrorResponseBody", modelProperties: { code: { - readOnly: true, serializedName: "code", + readOnly: true, type: { name: "String" } }, message: { - readOnly: true, serializedName: "message", + readOnly: true, type: { name: "String" } }, target: { - readOnly: true, serializedName: "target", + readOnly: true, type: { name: "String" } }, details: { - readOnly: true, serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { @@ -252,82 +224,86 @@ export const ErrorResponseBody: msRest.CompositeMapper = { } }; -export const ResourceProviderDefaultErrorResponse: msRest.CompositeMapper = { - serializedName: "ResourceProviderDefaultErrorResponse", +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceProviderDefaultErrorResponse", + className: "OperationListResult", modelProperties: { - error: { - readOnly: true, - serializedName: "error", + value: { + serializedName: "value", type: { - name: "Composite", - className: "ErrorResponseBody" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResult" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" } } } } }; -export const OfferDetail: msRest.CompositeMapper = { - serializedName: "OfferDetail", +export const OperationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OfferDetail", + className: "OperationResult", modelProperties: { - publisherId: { - required: true, - serializedName: "publisherId", - constraints: { - MaxLength: 50 - }, + name: { + serializedName: "name", type: { name: "String" } }, - id: { - required: true, - serializedName: "id", - constraints: { - MaxLength: 50 - }, + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplay" } }, - planId: { - required: true, - serializedName: "planId", - constraints: { - MaxLength: 50 - }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", type: { name: "String" } }, - planName: { - required: true, - serializedName: "planName", - constraints: { - MaxLength: 50 - }, + resource: { + serializedName: "resource", type: { name: "String" } }, - termUnit: { - required: true, - serializedName: "termUnit", - constraints: { - MaxLength: 25 - }, + operation: { + serializedName: "operation", type: { name: "String" } }, - status: { - serializedName: "status", + description: { + serializedName: "description", type: { name: "String" } @@ -336,36 +312,25 @@ export const OfferDetail: msRest.CompositeMapper = { } }; -export const UserDetail: msRest.CompositeMapper = { - serializedName: "UserDetail", +export const OrganizationResourceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserDetail", + className: "OrganizationResourceListResult", modelProperties: { - firstName: { - serializedName: "firstName", - constraints: { - MaxLength: 50 - }, - type: { - name: "String" - } - }, - lastName: { - serializedName: "lastName", - constraints: { - MaxLength: 50 - }, + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OrganizationResource" + } + } } }, - emailAddress: { - required: true, - serializedName: "emailAddress", - constraints: { - Pattern: /^\S+@\S+\.\S+$/ - }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -374,71 +339,81 @@ export const UserDetail: msRest.CompositeMapper = { } }; -export const OrganizationResource: msRest.CompositeMapper = { - serializedName: "OrganizationResource", +export const OrganizationResource: coreClient.CompositeMapper = { type: { name: "Composite", className: "OrganizationResource", modelProperties: { id: { - readOnly: true, serializedName: "id", + readOnly: true, type: { name: "String" } }, name: { - readOnly: true, serializedName: "name", + readOnly: true, type: { name: "String" } }, type: { - readOnly: true, serializedName: "type", + readOnly: true, type: { name: "String" } }, systemData: { - readOnly: true, serializedName: "systemData", type: { name: "Composite", className: "SystemData" } }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, createdTime: { - readOnly: true, serializedName: "properties.createdTime", + readOnly: true, type: { name: "DateTime" } }, provisioningState: { - readOnly: true, serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } }, organizationId: { - readOnly: true, serializedName: "properties.organizationId", + readOnly: true, type: { name: "String" } }, ssoUrl: { - readOnly: true, serializedName: "properties.ssoUrl", + readOnly: true, type: { name: "String" } }, offerDetail: { - required: true, serializedName: "properties.offerDetail", type: { name: "Composite", @@ -446,75 +421,74 @@ export const OrganizationResource: msRest.CompositeMapper = { } }, userDetail: { - required: true, serializedName: "properties.userDetail", type: { name: "Composite", className: "UserDetail" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - serializedName: "location", - type: { - name: "String" - } } } } }; -export const OrganizationResourceUpdate: msRest.CompositeMapper = { - serializedName: "OrganizationResourceUpdate", +export const OfferDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OrganizationResourceUpdate", + className: "OfferDetail", modelProperties: { - tags: { - serializedName: "tags", + publisherId: { + constraints: { + MaxLength: 50 + }, + serializedName: "publisherId", + required: true, type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } - } - } - } -}; - -export const ConfluentAgreementResourceListResponse: msRest.CompositeMapper = { - serializedName: "ConfluentAgreementResourceListResponse", - type: { - name: "Composite", - className: "ConfluentAgreementResourceListResponse", - modelProperties: { - value: { - serializedName: "", + }, + id: { + constraints: { + MaxLength: 50 + }, + serializedName: "id", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConfluentAgreementResource" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + planId: { + constraints: { + MaxLength: 50 + }, + serializedName: "planId", + required: true, + type: { + name: "String" + } + }, + planName: { + constraints: { + MaxLength: 50 + }, + serializedName: "planName", + required: true, + type: { + name: "String" + } + }, + termUnit: { + constraints: { + MaxLength: 25 + }, + serializedName: "termUnit", + required: true, + type: { + name: "String" + } + }, + status: { + serializedName: "status", + readOnly: true, type: { name: "String" } @@ -523,26 +497,35 @@ export const ConfluentAgreementResourceListResponse: msRest.CompositeMapper = { } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const UserDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "UserDetail", modelProperties: { - value: { - serializedName: "", + firstName: { + constraints: { + MaxLength: 50 + }, + serializedName: "firstName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResult" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + lastName: { + constraints: { + MaxLength: 50 + }, + serializedName: "lastName", + type: { + name: "String" + } + }, + emailAddress: { + constraints: { + Pattern: new RegExp("^\\S+@\\S+\\.\\S+$") + }, + serializedName: "emailAddress", + required: true, type: { name: "String" } @@ -551,28 +534,16 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const OrganizationResourceListResult: msRest.CompositeMapper = { - serializedName: "OrganizationResourceListResult", +export const OrganizationResourceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OrganizationResourceListResult", + className: "OrganizationResourceUpdate", modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OrganizationResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } } } diff --git a/sdk/confluent/arm-confluent/src/models/marketplaceAgreementsMappers.ts b/sdk/confluent/arm-confluent/src/models/marketplaceAgreementsMappers.ts deleted file mode 100644 index bc4fb3c96c8c..000000000000 --- a/sdk/confluent/arm-confluent/src/models/marketplaceAgreementsMappers.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - BaseResource, - ConfluentAgreementResource, - ConfluentAgreementResourceListResponse, - ErrorResponseBody, - OfferDetail, - OrganizationResource, - ResourceProviderDefaultErrorResponse, - SystemData, - UserDetail -} from "../models/mappers"; diff --git a/sdk/confluent/arm-confluent/src/models/organizationMappers.ts b/sdk/confluent/arm-confluent/src/models/organizationMappers.ts deleted file mode 100644 index 9576270e9426..000000000000 --- a/sdk/confluent/arm-confluent/src/models/organizationMappers.ts +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - BaseResource, - ConfluentAgreementResource, - ErrorResponseBody, - OfferDetail, - OrganizationResource, - OrganizationResourceListResult, - OrganizationResourceUpdate, - ResourceProviderDefaultErrorResponse, - SystemData, - UserDetail -} from "../models/mappers"; diff --git a/sdk/confluent/arm-confluent/src/models/parameters.ts b/sdk/confluent/arm-confluent/src/models/parameters.ts index 046187c46865..cbf406b5d82f 100644 --- a/sdk/confluent/arm-confluent/src/models/parameters.ts +++ b/sdk/confluent/arm-confluent/src/models/parameters.ts @@ -3,72 +3,129 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; +import { + OperationParameter, + OperationURLParameter, + OperationQueryParameter +} from "@azure/core-client"; +import { + ConfluentAgreementResource as ConfluentAgreementResourceMapper, + OrganizationResource as OrganizationResourceMapper, + OrganizationResourceUpdate as OrganizationResourceUpdateMapper +} from "../models/mappers"; -export const acceptLanguage: msRest.OperationParameter = { - parameterPath: "acceptLanguage", +export const accept: OperationParameter = { + parameterPath: "accept", mapper: { - serializedName: "accept-language", - defaultValue: "en-US", + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", type: { name: "String" } } }; -export const apiVersion: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", + +export const $host: OperationURLParameter = { + parameterPath: "$host", mapper: { + serializedName: "$host", required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2021-12-01", isConstant: true, serializedName: "api-version", - defaultValue: "2021-03-01-preview", type: { name: "String" } } }; -export const nextPageLink: msRest.OperationURLParameter = { - parameterPath: "nextPageLink", + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", mapper: { + serializedName: "subscriptionId", required: true, - serializedName: "nextLink", type: { name: "String" } - }, - skipEncoding: true + } }; -export const organizationName: msRest.OperationURLParameter = { - parameterPath: "organizationName", + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - required: true, - serializedName: "organizationName", + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String" } } }; -export const resourceGroupName: msRest.OperationURLParameter = { - parameterPath: "resourceGroupName", + +export const body: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ConfluentAgreementResourceMapper +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", mapper: { + serializedName: "nextLink", required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { serializedName: "resourceGroupName", + required: true, type: { name: "String" } } }; -export const subscriptionId: msRest.OperationURLParameter = { - parameterPath: "subscriptionId", + +export const organizationName: OperationURLParameter = { + parameterPath: "organizationName", mapper: { + serializedName: "organizationName", required: true, - serializedName: "subscriptionId", type: { name: "String" } } }; + +export const body1: OperationParameter = { + parameterPath: ["options", "body"], + mapper: OrganizationResourceMapper +}; + +export const body2: OperationParameter = { + parameterPath: ["options", "body"], + mapper: OrganizationResourceUpdateMapper +}; + +export const body3: OperationParameter = { + parameterPath: "body", + mapper: OrganizationResourceMapper +}; diff --git a/sdk/confluent/arm-confluent/src/operations/index.ts b/sdk/confluent/arm-confluent/src/operations/index.ts index f174c0734f16..a7ad709bf426 100644 --- a/sdk/confluent/arm-confluent/src/operations/index.ts +++ b/sdk/confluent/arm-confluent/src/operations/index.ts @@ -3,8 +3,7 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export * from "./marketplaceAgreements"; diff --git a/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts b/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts index bfbbb70b5fe8..076ae8120cda 100644 --- a/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts +++ b/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts @@ -3,150 +3,122 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/marketplaceAgreementsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { MarketplaceAgreements } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { ConfluentManagementClientContext } from "../confluentManagementClientContext"; +import { ConfluentManagementClient } from "../confluentManagementClient"; +import { + ConfluentAgreementResource, + MarketplaceAgreementsListNextOptionalParams, + MarketplaceAgreementsListOptionalParams, + MarketplaceAgreementsListResponse, + MarketplaceAgreementsCreateOptionalParams, + MarketplaceAgreementsCreateResponse, + MarketplaceAgreementsListNextResponse +} from "../models"; -/** Class representing a MarketplaceAgreements. */ -export class MarketplaceAgreements { - private readonly client: ConfluentManagementClientContext; +/// +/** Class containing MarketplaceAgreements operations. */ +export class MarketplaceAgreementsImpl implements MarketplaceAgreements { + private readonly client: ConfluentManagementClient; /** - * Create a MarketplaceAgreements. - * @param {ConfluentManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class MarketplaceAgreements class. + * @param client Reference to the service client */ - constructor(client: ConfluentManagementClientContext) { + constructor(client: ConfluentManagementClient) { this.client = client; } /** - * @summary List Confluent marketplace agreements in the subscription. - * @param [options] The optional parameters - * @returns Promise + * List Confluent marketplace agreements in the subscription. + * @param options The options parameters. */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list( - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - list( - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options + public list( + options?: MarketplaceAgreementsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); }, - listOperationSpec, - callback - ) as Promise; + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: MarketplaceAgreementsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: MarketplaceAgreementsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } } /** - * @summary Create Confluent Marketplace agreement in the subscription. - * @param [options] The optional parameters - * @returns Promise - */ - create( - options?: Models.MarketplaceAgreementsCreateOptionalParams - ): Promise; - /** - * @param callback The callback + * List Confluent marketplace agreements in the subscription. + * @param options The options parameters. */ - create(callback: msRest.ServiceCallback): void; + private _list( + options?: MarketplaceAgreementsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** - * @param options The optional parameters - * @param callback The callback + * Create Confluent Marketplace agreement in the subscription. + * @param options The options parameters. */ create( - options: Models.MarketplaceAgreementsCreateOptionalParams, - callback: msRest.ServiceCallback - ): void; - create( - options?: - | Models.MarketplaceAgreementsCreateOptionalParams - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { - return this.client.sendOperationRequest( - { - options - }, - createOperationSpec, - callback - ) as Promise; + options?: MarketplaceAgreementsCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, createOperationSpec); } /** - * @summary List Confluent marketplace agreements in the subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext( - nextPageLink: string, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext( - nextPageLink: string, - callback: msRest.ServiceCallback - ): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext( - nextPageLink: string, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - listNext( - nextPageLink: string, - options?: - | msRest.RequestOptionsBase - | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + private _listNext( + nextLink: string, + options?: MarketplaceAgreementsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback - ) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], responses: { 200: { bodyMapper: Mappers.ConfluentAgreementResourceListResponse @@ -155,19 +127,15 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], serializer }; - -const createOperationSpec: msRest.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default", httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default", - urlParameters: [Parameters.subscriptionId], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: ["options", "body"], - mapper: Mappers.ConfluentAgreementResource - }, responses: { 200: { bodyMapper: Mappers.ConfluentAgreementResource @@ -176,16 +144,16 @@ const createOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [Parameters.nextPageLink], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ConfluentAgreementResourceListResponse @@ -194,5 +162,12 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/confluent/arm-confluent/src/operations/organization.ts b/sdk/confluent/arm-confluent/src/operations/organization.ts index 4fbf507348ec..4577623e2835 100644 --- a/sdk/confluent/arm-confluent/src/operations/organization.ts +++ b/sdk/confluent/arm-confluent/src/operations/organization.ts @@ -3,276 +3,412 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/organizationMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { Organization } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { ConfluentManagementClientContext } from "../confluentManagementClientContext"; +import { ConfluentManagementClient } from "../confluentManagementClient"; +import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; +import { LroImpl } from "../lroImpl"; +import { + OrganizationResource, + OrganizationListBySubscriptionNextOptionalParams, + OrganizationListBySubscriptionOptionalParams, + OrganizationListByResourceGroupNextOptionalParams, + OrganizationListByResourceGroupOptionalParams, + OrganizationListBySubscriptionResponse, + OrganizationListByResourceGroupResponse, + OrganizationGetOptionalParams, + OrganizationGetResponse, + OrganizationCreateOptionalParams, + OrganizationCreateResponse, + OrganizationUpdateOptionalParams, + OrganizationUpdateResponse, + OrganizationDeleteOptionalParams, + OrganizationListBySubscriptionNextResponse, + OrganizationListByResourceGroupNextResponse +} from "../models"; -/** Class representing a Organization. */ -export class Organization { - private readonly client: ConfluentManagementClientContext; +/// +/** Class containing Organization operations. */ +export class OrganizationImpl implements Organization { + private readonly client: ConfluentManagementClient; /** - * Create a Organization. - * @param {ConfluentManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Organization class. + * @param client Reference to the service client */ - constructor(client: ConfluentManagementClientContext) { + constructor(client: ConfluentManagementClient) { this.client = client; } /** - * @summary List all organizations under the specified subscription. - * @param [options] The optional parameters - * @returns Promise + * List all organizations under the specified subscription. + * @param options The options parameters. */ - listBySubscription(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - listBySubscription(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options + public listBySubscription( + options?: OrganizationListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); }, - listBySubscriptionOperationSpec, - callback) as Promise; + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listBySubscriptionPagingPage(options); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: OrganizationListBySubscriptionOptionalParams + ): AsyncIterableIterator { + let result = await this._listBySubscription(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listBySubscriptionPagingAll( + options?: OrganizationListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } } /** - * @summary List all Organizations under the specified resource group. - * @param resourceGroupName Resource group name - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Resource group name - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** + * List all Organizations under the specified resource group. * @param resourceGroupName Resource group name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { + public listByResourceGroup( + resourceGroupName: string, + options?: OrganizationListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: () => { + return this.listByResourceGroupPagingPage(resourceGroupName, options); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: OrganizationListByResourceGroupOptionalParams + ): AsyncIterableIterator { + let result = await this._listByResourceGroup(resourceGroupName, options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listByResourceGroupNext( resourceGroupName, + continuationToken, options - }, - listByResourceGroupOperationSpec, - callback) as Promise; + ); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: OrganizationListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } } /** - * @summary Get the properties of a specific Organization resource. - * @param resourceGroupName Resource group name - * @param organizationName Organization resource name - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, organizationName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName Resource group name - * @param organizationName Organization resource name - * @param callback The callback - */ - get(resourceGroupName: string, organizationName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName Resource group name - * @param organizationName Organization resource name - * @param options The optional parameters - * @param callback The callback + * List all organizations under the specified subscription. + * @param options The options parameters. */ - get(resourceGroupName: string, organizationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, organizationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySubscription( + options?: OrganizationListBySubscriptionOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - organizationName, - options - }, - getOperationSpec, - callback) as Promise; + { options }, + listBySubscriptionOperationSpec + ); } /** - * @summary Create Organization resource + * List all Organizations under the specified resource group. * @param resourceGroupName Resource group name - * @param organizationName Organization resource name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - create(resourceGroupName: string, organizationName: string, options?: Models.OrganizationCreateOptionalParams): Promise { - return this.beginCreate(resourceGroupName,organizationName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + private _listByResourceGroup( + resourceGroupName: string, + options?: OrganizationListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); } /** - * @summary Update Organization resource + * Get the properties of a specific Organization resource. * @param resourceGroupName Resource group name * @param organizationName Organization resource name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - update(resourceGroupName: string, organizationName: string, options?: Models.OrganizationUpdateOptionalParams): Promise; + get( + resourceGroupName: string, + organizationName: string, + options?: OrganizationGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, options }, + getOperationSpec + ); + } + /** + * Create Organization resource * @param resourceGroupName Resource group name * @param organizationName Organization resource name - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, organizationName: string, callback: msRest.ServiceCallback): void; + async beginCreate( + resourceGroupName: string, + organizationName: string, + options?: OrganizationCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OrganizationCreateResponse + > + > { + 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, + { resourceGroupName, organizationName, options }, + createOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "azure-async-operation" + }); + } + /** + * Create Organization resource * @param resourceGroupName Resource group name * @param organizationName Organization resource name - * @param options The optional parameters - * @param callback The callback + * @param options The options parameters. */ - update(resourceGroupName: string, organizationName: string, options: Models.OrganizationUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, organizationName: string, options?: Models.OrganizationUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - organizationName, - options - }, - updateOperationSpec, - callback) as Promise; + async beginCreateAndWait( + resourceGroupName: string, + organizationName: string, + options?: OrganizationCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + organizationName, + options + ); + return poller.pollUntilDone(); } /** - * @summary Delete Organization resource + * Update Organization resource * @param resourceGroupName Resource group name * @param organizationName Organization resource name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - deleteMethod(resourceGroupName: string, organizationName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,organizationName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); + update( + resourceGroupName: string, + organizationName: string, + options?: OrganizationUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, options }, + updateOperationSpec + ); } /** - * @summary Create Organization resource + * Delete Organization resource * @param resourceGroupName Resource group name * @param organizationName Organization resource name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginCreate(resourceGroupName: string, organizationName: string, options?: Models.OrganizationBeginCreateOptionalParams): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - organizationName, - options - }, - beginCreateOperationSpec, - options); + async beginDelete( + resourceGroupName: string, + organizationName: string, + options?: OrganizationDeleteOptionalParams + ): 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, + { resourceGroupName, organizationName, options }, + deleteOperationSpec + ); + return new LroEngine(lro, { + resumeFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + lroResourceLocationConfig: "location" + }); } /** - * @summary Delete Organization resource + * Delete Organization resource * @param resourceGroupName Resource group name * @param organizationName Organization resource name - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ - beginDeleteMethod(resourceGroupName: string, organizationName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - organizationName, - options - }, - beginDeleteMethodOperationSpec, - options); + async beginDeleteAndWait( + resourceGroupName: string, + organizationName: string, + options?: OrganizationDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + organizationName, + options + ); + return poller.pollUntilDone(); } /** - * @summary List all organizations under the specified subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listBySubscriptionNext( + nextLink: string, + options?: OrganizationListBySubscriptionNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listBySubscriptionNextOperationSpec, - callback) as Promise; + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); } /** - * @summary List all Organizations under the specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListByResourceGroupNext + * @param resourceGroupName Resource group name + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: OrganizationListByResourceGroupNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listBySubscriptionOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.OrganizationResourceListResult @@ -281,22 +417,15 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], serializer }; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.OrganizationResourceListResult @@ -305,23 +434,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage + Parameters.resourceGroupName ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OrganizationResource @@ -330,114 +455,99 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.organizationName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: [ - "options", - "body" - ], - mapper: Mappers.OrganizationResourceUpdate - }, + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.OrganizationResource }, + 201: { + bodyMapper: Mappers.OrganizationResource + }, + 202: { + bodyMapper: Mappers.OrganizationResource + }, + 204: { + bodyMapper: Mappers.OrganizationResource + }, default: { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.organizationName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: [ - "options", - "body" - ], - mapper: Mappers.OrganizationResource - }, + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.OrganizationResource }, - 201: { - bodyMapper: Mappers.OrganizationResource - }, default: { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], urlParameters: [ + Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.organizationName ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + httpMethod: "DELETE", responses: { 200: {}, + 201: {}, 202: {}, 204: {}, default: { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.organizationName + ], + headerParameters: [Parameters.accept], serializer }; - -const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OrganizationResourceListResult @@ -446,22 +556,18 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], serializer }; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OrganizationResourceListResult @@ -470,5 +576,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts b/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts index bc0aa99f748a..fbf260c199cd 100644 --- a/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts +++ b/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts @@ -3,92 +3,109 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/organizationOperationsMappers"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { OrganizationOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { ConfluentManagementClientContext } from "../confluentManagementClientContext"; +import { ConfluentManagementClient } from "../confluentManagementClient"; +import { + OperationResult, + OrganizationOperationsListNextOptionalParams, + OrganizationOperationsListOptionalParams, + OrganizationOperationsListResponse, + OrganizationOperationsListNextResponse +} from "../models"; -/** Class representing a OrganizationOperations. */ -export class OrganizationOperations { - private readonly client: ConfluentManagementClientContext; +/// +/** Class containing OrganizationOperations operations. */ +export class OrganizationOperationsImpl implements OrganizationOperations { + private readonly client: ConfluentManagementClient; /** - * Create a OrganizationOperations. - * @param {ConfluentManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class OrganizationOperations class. + * @param client Reference to the service client */ - constructor(client: ConfluentManagementClientContext) { + constructor(client: ConfluentManagementClient) { this.client = client; } /** - * @summary List all operations provided by Microsoft.Confluent. - * @param [options] The optional parameters - * @returns Promise + * List all operations provided by Microsoft.Confluent. + * @param options The options parameters. */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options + public list( + options?: OrganizationOperationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; }, - listOperationSpec, - callback) as Promise; + byPage: () => { + return this.listPagingPage(options); + } + }; + } + + private async *listPagingPage( + options?: OrganizationOperationsListOptionalParams + ): AsyncIterableIterator { + let result = await this._list(options); + yield result.value || []; + let continuationToken = result.nextLink; + while (continuationToken) { + result = await this._listNext(continuationToken, options); + continuationToken = result.nextLink; + yield result.value || []; + } + } + + private async *listPagingAll( + options?: OrganizationOperationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(options)) { + yield* page; + } } /** - * @summary List all operations provided by Microsoft.Confluent. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback + * List all operations provided by Microsoft.Confluent. + * @param options The options parameters. */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + private _list( + options?: OrganizationOperationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } + /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback + * ListNext + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + private _listNext( + nextLink: string, + options?: OrganizationOperationsListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; + { nextLink, options }, + listNextOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Confluent/operations", httpMethod: "GET", - path: "providers/Microsoft.Confluent/operations", - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], responses: { 200: { bodyMapper: Mappers.OperationListResult @@ -97,22 +114,14 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], serializer }; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", +const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], + httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.OperationListResult @@ -121,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.nextLink], + headerParameters: [Parameters.accept], serializer }; diff --git a/sdk/confluent/arm-confluent/src/operations/validations.ts b/sdk/confluent/arm-confluent/src/operations/validations.ts index deef4932c606..7e90c7a6bfd3 100644 --- a/sdk/confluent/arm-confluent/src/operations/validations.ts +++ b/sdk/confluent/arm-confluent/src/operations/validations.ts @@ -3,108 +3,58 @@ * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/validationsMappers"; +import { Validations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { ConfluentManagementClientContext } from "../confluentManagementClientContext"; +import { ConfluentManagementClient } from "../confluentManagementClient"; +import { + OrganizationResource, + ValidationsValidateOrganizationOptionalParams, + ValidationsValidateOrganizationResponse +} from "../models"; -/** Class representing a Validations. */ -export class Validations { - private readonly client: ConfluentManagementClientContext; +/** Class containing Validations operations. */ +export class ValidationsImpl implements Validations { + private readonly client: ConfluentManagementClient; /** - * Create a Validations. - * @param {ConfluentManagementClientContext} client Reference to the service client. + * Initialize a new instance of the class Validations class. + * @param client Reference to the service client */ - constructor(client: ConfluentManagementClientContext) { + constructor(client: ConfluentManagementClient) { this.client = client; } /** - * @summary Organization Validate proxy resource + * Organization Validate proxy resource * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model - * @param [options] The optional parameters - * @returns Promise + * @param options The options parameters. */ validateOrganization( resourceGroupName: string, organizationName: string, - body: Models.OrganizationResource, - options?: msRest.RequestOptionsBase - ): Promise; - /** - * @param resourceGroupName Resource group name - * @param organizationName Organization resource name - * @param body Organization resource model - * @param callback The callback - */ - validateOrganization( - resourceGroupName: string, - organizationName: string, - body: Models.OrganizationResource, - callback: msRest.ServiceCallback - ): void; - /** - * @param resourceGroupName Resource group name - * @param organizationName Organization resource name - * @param body Organization resource model - * @param options The optional parameters - * @param callback The callback - */ - validateOrganization( - resourceGroupName: string, - organizationName: string, - body: Models.OrganizationResource, - options: msRest.RequestOptionsBase, - callback: msRest.ServiceCallback - ): void; - validateOrganization( - resourceGroupName: string, - organizationName: string, - body: Models.OrganizationResource, - options?: msRest.RequestOptionsBase | msRest.ServiceCallback, - callback?: msRest.ServiceCallback - ): Promise { + body: OrganizationResource, + options?: ValidationsValidateOrganizationOptionalParams + ): Promise { return this.client.sendOperationRequest( - { - resourceGroupName, - organizationName, - body, - options - }, - validateOrganizationOperationSpec, - callback - ) as Promise; + { resourceGroupName, organizationName, body, options }, + validateOrganizationOperationSpec + ); } } - // Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const validateOrganizationOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const validateOrganizationOperationSpec: coreClient.OperationSpec = { path: - "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName - ], - queryParameters: [Parameters.apiVersion], - headerParameters: [Parameters.acceptLanguage], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.OrganizationResource, - required: true - } - }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate", + httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.OrganizationResource @@ -113,5 +63,15 @@ const validateOrganizationOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceProviderDefaultErrorResponse } }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.organizationName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; diff --git a/sdk/confluent/arm-confluent/src/models/organizationOperationsMappers.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/index.ts similarity index 59% rename from sdk/confluent/arm-confluent/src/models/organizationOperationsMappers.ts rename to sdk/confluent/arm-confluent/src/operationsInterfaces/index.ts index 672b22024b3b..a7ad709bf426 100644 --- a/sdk/confluent/arm-confluent/src/models/organizationOperationsMappers.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/index.ts @@ -6,10 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -export { - ErrorResponseBody, - OperationDisplay, - OperationListResult, - OperationResult, - ResourceProviderDefaultErrorResponse -} from "../models/mappers"; +export * from "./marketplaceAgreements"; +export * from "./organizationOperations"; +export * from "./organization"; +export * from "./validations"; diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts new file mode 100644 index 000000000000..8a1c45da778c --- /dev/null +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts @@ -0,0 +1,34 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ConfluentAgreementResource, + MarketplaceAgreementsListOptionalParams, + MarketplaceAgreementsCreateOptionalParams, + MarketplaceAgreementsCreateResponse +} from "../models"; + +/// +/** Interface representing a MarketplaceAgreements. */ +export interface MarketplaceAgreements { + /** + * List Confluent marketplace agreements in the subscription. + * @param options The options parameters. + */ + list( + options?: MarketplaceAgreementsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Create Confluent Marketplace agreement in the subscription. + * @param options The options parameters. + */ + create( + options?: MarketplaceAgreementsCreateOptionalParams + ): Promise; +} diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts new file mode 100644 index 000000000000..9c8532f7140c --- /dev/null +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts @@ -0,0 +1,114 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { + OrganizationResource, + OrganizationListBySubscriptionOptionalParams, + OrganizationListByResourceGroupOptionalParams, + OrganizationGetOptionalParams, + OrganizationGetResponse, + OrganizationCreateOptionalParams, + OrganizationCreateResponse, + OrganizationUpdateOptionalParams, + OrganizationUpdateResponse, + OrganizationDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a Organization. */ +export interface Organization { + /** + * List all organizations under the specified subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: OrganizationListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * List all Organizations under the specified resource group. + * @param resourceGroupName Resource group name + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: OrganizationListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get the properties of a specific Organization resource. + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + organizationName: string, + options?: OrganizationGetOptionalParams + ): Promise; + /** + * Create Organization resource + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + organizationName: string, + options?: OrganizationCreateOptionalParams + ): Promise< + PollerLike< + PollOperationState, + OrganizationCreateResponse + > + >; + /** + * Create Organization resource + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + organizationName: string, + options?: OrganizationCreateOptionalParams + ): Promise; + /** + * Update Organization resource + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param options The options parameters. + */ + update( + resourceGroupName: string, + organizationName: string, + options?: OrganizationUpdateOptionalParams + ): Promise; + /** + * Delete Organization resource + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + organizationName: string, + options?: OrganizationDeleteOptionalParams + ): Promise, void>>; + /** + * Delete Organization resource + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + organizationName: string, + options?: OrganizationDeleteOptionalParams + ): Promise; +} diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts new file mode 100644 index 000000000000..40d4e1173bfc --- /dev/null +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + OperationResult, + OrganizationOperationsListOptionalParams +} from "../models"; + +/// +/** Interface representing a OrganizationOperations. */ +export interface OrganizationOperations { + /** + * List all operations provided by Microsoft.Confluent. + * @param options The options parameters. + */ + list( + options?: OrganizationOperationsListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts new file mode 100644 index 000000000000..4fca9a5c01aa --- /dev/null +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + OrganizationResource, + ValidationsValidateOrganizationOptionalParams, + ValidationsValidateOrganizationResponse +} from "../models"; + +/** Interface representing a Validations. */ +export interface Validations { + /** + * Organization Validate proxy resource + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name + * @param body Organization resource model + * @param options The options parameters. + */ + validateOrganization( + resourceGroupName: string, + organizationName: string, + body: OrganizationResource, + options?: ValidationsValidateOrganizationOptionalParams + ): Promise; +} diff --git a/sdk/confluent/arm-confluent/test/sampleTest.ts b/sdk/confluent/arm-confluent/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/confluent/arm-confluent/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/confluent/arm-confluent/tsconfig.json b/sdk/confluent/arm-confluent/tsconfig.json index 422b584abd5e..6e3251194117 100644 --- a/sdk/confluent/arm-confluent/tsconfig.json +++ b/sdk/confluent/arm-confluent/tsconfig.json @@ -3,7 +3,7 @@ "module": "es6", "moduleResolution": "node", "strict": true, - "target": "es5", + "target": "es6", "sourceMap": true, "declarationMap": true, "esModuleInterop": true, @@ -11,9 +11,9 @@ "forceConsistentCasingInFileNames": true, "lib": ["es6", "dom"], "declaration": true, - "outDir": "./esm", + "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] } diff --git a/sdk/confluent/ci.yml b/sdk/confluent/ci.yml new file mode 100644 index 000000000000..7433956a3405 --- /dev/null +++ b/sdk/confluent/ci.yml @@ -0,0 +1,29 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/confluent/ + +pr: + branches: + include: + - main + - release/* + - hotfix/* + paths: + include: + - sdk/confluent/ + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: confluent + Artifacts: + - name: azure-arm-confluent + safeName: azurearmconfluent + \ No newline at end of file