diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e88839ef06ca..0953b110f8e6 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10339,6 +10339,37 @@ packages: yn: 3.1.1 dev: false + /ts-node@10.9.2(@types/node@18.19.39)(typescript@5.4.5): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 18.19.39 + acorn: 8.12.1 + acorn-walk: 8.3.3 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.4.5 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + dev: false + /ts-node@10.9.2(@types/node@18.19.39)(typescript@5.5.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true @@ -15159,7 +15190,7 @@ packages: dev: false file:projects/arm-informaticadatamanagement.tgz: - resolution: {integrity: sha512-OKupkmRV/BCbg0IQwvpoZZNKXYP+NWLy+FaVxTLT4XnQYoaZMJxjXfntxPDHlPRqQNBVAy0cNhUczUWBQzh2Iw==, tarball: file:projects/arm-informaticadatamanagement.tgz} + resolution: {integrity: sha512-du8qHJT83ofPqpnJQWhGaWBbORHKszqD2mJ/sIZQK61BMDDOCz3mxrBCEZ8MR3e1N6y13PoOd/xsA4YoNHlghA==, tarball: file:projects/arm-informaticadatamanagement.tgz} name: '@rush-temp/arm-informaticadatamanagement' version: 0.0.0 dependencies: @@ -15177,10 +15208,10 @@ packages: mkdirp: 3.0.1 mocha: 10.6.0 rimraf: 5.0.8 - ts-node: 10.9.2(@types/node@18.19.39)(typescript@5.5.3) + ts-node: 10.9.2(@types/node@18.19.39)(typescript@5.4.5) tslib: 2.6.3 tsx: 4.16.2 - typescript: 5.5.3 + typescript: 5.4.5 uglify-js: 3.18.0 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md b/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md index 3f42f89f7bf7..11638592d5d5 100644 --- a/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md +++ b/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md @@ -1,15 +1,5 @@ # Release History - -## 1.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2024-05-23) + +## 1.0.0 (2024-07-10) The package of @azure/arm-informaticadatamanagement is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/informatica/arm-informaticadatamanagement/README.md b/sdk/informatica/arm-informaticadatamanagement/README.md index d2e6473c137a..d7640f906edf 100644 --- a/sdk/informatica/arm-informaticadatamanagement/README.md +++ b/sdk/informatica/arm-informaticadatamanagement/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-informaticadatamanagement) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/informatica/arm-informaticadatamanagement/_meta.json b/sdk/informatica/arm-informaticadatamanagement/_meta.json index c3513dc530d6..a775c3e2e904 100644 --- a/sdk/informatica/arm-informaticadatamanagement/_meta.json +++ b/sdk/informatica/arm-informaticadatamanagement/_meta.json @@ -1,8 +1,8 @@ { - "commit": "6f694078660d96dd07360dd171a7604105c606bf", + "commit": "eb8c6fcae0271fb227be37b58c143a4dc7aa5c93", "readme": "specification/informatica/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\informatica\\resource-manager\\readme.md --use=@autorest/typescript@6.0.22 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/informatica/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.9", - "use": "@autorest/typescript@6.0.22" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.10", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/informatica/arm-informaticadatamanagement/assets.json b/sdk/informatica/arm-informaticadatamanagement/assets.json deleted file mode 100644 index b991488392ca..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/informatica/arm-informaticadatamanagement", - "Tag": "js/informatica/arm-informaticadatamanagement_09fcfa043a" -} diff --git a/sdk/informatica/arm-informaticadatamanagement/package.json b/sdk/informatica/arm-informaticadatamanagement/package.json index 3c0cfb210c8c..70295ccfdef7 100644 --- a/sdk/informatica/arm-informaticadatamanagement/package.json +++ b/sdk/informatica/arm-informaticadatamanagement/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for InformaticaDataManagement.", - "version": "1.0.0-beta.2", + "version": "1.0.0", "engines": { "node": ">=18.0.0" }, @@ -30,7 +30,7 @@ "devDependencies": { "@microsoft/api-extractor": "^7.31.1", "mkdirp": "^3.0.1", - "typescript": "~5.5.3", + "typescript": "~5.4.5", "uglify-js": "^3.4.9", "rimraf": "^5.0.0", "dotenv": "^16.0.0", @@ -106,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement" +} \ No newline at end of file diff --git a/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md b/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md index 59dcab53dc88..d214c9efd823 100644 --- a/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md +++ b/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md @@ -283,7 +283,7 @@ export interface LinkOrganization { // @public export interface MarketplaceDetails { - marketplaceSubscriptionId: string; + marketplaceSubscriptionId?: string; offerDetails: OfferDetails; } diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/operationsListSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/operationsListSample.ts deleted file mode 100644 index 625c22a1efb8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsList() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsList(); - operationsListMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsCreateOrUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsCreateOrUpdateSample.ts deleted file mode 100644 index b155d1450654..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsCreateOrUpdateSample.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaOrganizationResource, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a InformaticaOrganizationResource - * - * @summary Create a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json - */ -async function organizationsCreateOrUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "C"; - const resource: InformaticaOrganizationResource = { - location: "pamjoudtssthlbhrnfjidr", - properties: { - companyDetails: { - business: "pucosrtjv", - companyName: "xszcggknokhw", - country: "gwkcpnwyaqc", - domain: "utcxetzzpmbvwmjrvphqngvp", - numberOfEmployees: 25, - officeAddress: "sbttzwyajgdbsvipuiclbzvkcvwyil", - }, - informaticaProperties: { - informaticaRegion: "zfqodqpbeflhedypiijdkc", - organizationId: "wtdmhlwhkvgqdumaehgfgiqcxgnqpx", - organizationName: "nomzbvwe", - singleSignOnUrl: "espcbzjhtmgwfdkckhqk", - }, - linkOrganization: { token: "jjfouhoqpumjvrdsfbimgcy" }, - marketplaceDetails: { - marketplaceSubscriptionId: "ovenlecocg", - offerDetails: { - offerId: - "cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty", - planId: "jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp", - planName: - "iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu", - publisherId: - "zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx", - termId: - "tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv", - termUnit: "gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl", - }, - }, - provisioningState: "Accepted", - userDetails: { - emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc", - firstName: "appvdclawzfjntdfdftjevlhvzropnxqtnypid", - lastName: "nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn", - phoneNumber: "fvcjylxlmhdnshsgywnzlyvshu", - upn: "undljch", - }, - }, - tags: { key8430: "cagshqtjlxtqqhdwtchokvxszybp" }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a InformaticaOrganizationResource - * - * @summary Create a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MinimumSet_Gen.json - */ -async function organizationsCreateOrUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "n6v"; - const resource: InformaticaOrganizationResource = { - location: "pamjoudtssthlbhrnfjidr", - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - resource, - ); - console.log(result); -} - -async function main() { - organizationsCreateOrUpdate(); - organizationsCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsDeleteSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsDeleteSample.ts deleted file mode 100644 index e3118f73f986..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsDeleteSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a InformaticaOrganizationResource - * - * @summary Delete a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json - */ -async function organizationsDelete() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginDeleteAndWait( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete a InformaticaOrganizationResource - * - * @summary Delete a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MinimumSet_Gen.json - */ -async function organizationsDeleteMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginDeleteAndWait( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsDelete(); - organizationsDeleteMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetAllServerlessRuntimesSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetAllServerlessRuntimesSample.ts deleted file mode 100644 index d42d4c373abd..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetAllServerlessRuntimesSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource. - * - * @summary Gets all serverless runtime resources in a given informatica organization resource. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json - */ -async function organizationsGetAllServerlessRuntimes() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "t"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getAllServerlessRuntimes( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource. - * - * @summary Gets all serverless runtime resources in a given informatica organization resource. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json - */ -async function organizationsGetAllServerlessRuntimesMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "0"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getAllServerlessRuntimes( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGetAllServerlessRuntimes(); - organizationsGetAllServerlessRuntimesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetSample.ts deleted file mode 100644 index 5789f4d93da5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a InformaticaOrganizationResource - * - * @summary Get a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json - */ -async function organizationsGet() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "Sg"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.get( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a InformaticaOrganizationResource - * - * @summary Get a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MinimumSet_Gen.json - */ -async function organizationsGetMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "q"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.get( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGet(); - organizationsGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetServerlessMetadataSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetServerlessMetadataSample.ts deleted file mode 100644 index 907c53543908..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetServerlessMetadataSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets Metadata of the serverless runtime environment. - * - * @summary Gets Metadata of the serverless runtime environment. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json - */ -async function organizationsGetServerlessMetadata() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "3_UC"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getServerlessMetadata( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Gets Metadata of the serverless runtime environment. - * - * @summary Gets Metadata of the serverless runtime environment. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MinimumSet_Gen.json - */ -async function organizationsGetServerlessMetadataMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "A"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getServerlessMetadata( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGetServerlessMetadata(); - organizationsGetServerlessMetadataMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListByResourceGroupSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListByResourceGroupSample.ts deleted file mode 100644 index 76baefc06803..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListByResourceGroupSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by resource group - * - * @summary List InformaticaOrganizationResource resources by resource group - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json - */ -async function organizationsListByResourceGroup() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by resource group - * - * @summary List InformaticaOrganizationResource resources by resource group - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MinimumSet_Gen.json - */ -async function organizationsListByResourceGroupMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - organizationsListByResourceGroup(); - organizationsListByResourceGroupMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListBySubscriptionSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListBySubscriptionSample.ts deleted file mode 100644 index f8366422c2fc..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListBySubscriptionSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID - * - * @summary List InformaticaOrganizationResource resources by subscription ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json - */ -async function organizationsListBySubscription() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID - * - * @summary List InformaticaOrganizationResource resources by subscription ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MinimumSet_Gen.json - */ -async function organizationsListBySubscriptionMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - organizationsListBySubscription(); - organizationsListBySubscriptionMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsUpdateSample.ts deleted file mode 100644 index 1deee9ca5bc8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsUpdateSample.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaOrganizationResourceUpdate, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a InformaticaOrganizationResource - * - * @summary Update a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json - */ -async function organizationsUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const properties: InformaticaOrganizationResourceUpdate = { - properties: { - companyDetails: { - business: "mwqblnruflwpolgbxpqbqneve", - companyName: "xkrvbozrjcvappqeeyt", - country: "rvlzppgvopcw", - domain: "dponvwnrdrnzahcurqssesukbsokdd", - numberOfEmployees: 22, - officeAddress: "sfcx", - }, - existingResourceId: "uvwlcphdfkqnhrtddpsiacbowcxxo", - marketplaceDetails: { - marketplaceSubscriptionId: "szhyxzgjtssjmlguivepc", - offerDetails: { - offerId: - "idaxbflabvjsippplyenvrpgeydsjxcmyubgukffkcdvlvrtwpdhnvdblxjsldiuswrchsibk", - planId: - "giihvvnwdwzkfqrhkpqzbgfotzyixnsvmxzauseebillhslauglzfxzvzvts", - planName: - "tfqjenotaewzdeerliteqxdawuqxhwdzbtiiimsaedrlsnbdoonnloakjtvnwhhrcyxxsgoachguthqvlahpjyofpoqpfacfmiaauawazkmxkjgvktbptojknzojtjrfzvbbjjkvstabqyaczxinijhoxrjukftsagpwgsvpmczopztmplipyufhuaumfx", - publisherId: - "ktzfghsyjqbsswhltoaemgotmnorhdogvkaxplutbjjqzuepxizliynyakersobagvpwvpzwjtjjxigsqgcyqaahaxdijghnexliofhfjlqzjmmbvrhcvjxdodnexxizbgfhjopbwzjojxsluasnwwsgcajefglbcvzpaeblanhmurcculndtfwnfjyxol", - termId: - "eolmwogtgpdncqoigqcdomupwummaicwvdxgbskpdsmjizdfbdgbxbuekcpwmenqzbhqxpdnjtup", - termUnit: "nykqoplazujcwmfldntifjqrnx", - }, - }, - userDetails: { - emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc", - firstName: "qguqrmanyupoi", - lastName: "ugzg", - phoneNumber: "uxa", - upn: "viwjrkn", - }, - }, - tags: { key1918: "fbjvtuvzsghpl" }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.update( - resourceGroupName, - organizationName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a InformaticaOrganizationResource - * - * @summary Update a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MinimumSet_Gen.json - */ -async function organizationsUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "-"; - const properties: InformaticaOrganizationResourceUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.update( - resourceGroupName, - organizationName, - properties, - ); - console.log(result); -} - -async function main() { - organizationsUpdate(); - organizationsUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCheckDependenciesSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCheckDependenciesSample.ts deleted file mode 100644 index 6604c9c3ba6b..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCheckDependenciesSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Checks all dependencies for a serverless runtime resource - * - * @summary Checks all dependencies for a serverless runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json - */ -async function serverlessRuntimesCheckDependencies() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "3P"; - const serverlessRuntimeName = "M"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.checkDependencies( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Checks all dependencies for a serverless runtime resource - * - * @summary Checks all dependencies for a serverless runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json - */ -async function serverlessRuntimesCheckDependenciesMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const serverlessRuntimeName = "_2_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.checkDependencies( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesCheckDependencies(); - serverlessRuntimesCheckDependenciesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCreateOrUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCreateOrUpdateSample.ts deleted file mode 100644 index 6a6bcf9ec013..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCreateOrUpdateSample.ts +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaServerlessRuntimeResource, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a InformaticaServerlessRuntimeResource - * - * @summary Create a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json - */ -async function serverlessRuntimesCreateOrUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "__C"; - const serverlessRuntimeName = "0j-__"; - const resource: InformaticaServerlessRuntimeResource = { - properties: { - description: "mqkaenjmxakvzrwmirelmhgiedto", - advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }], - applicationType: "CDI", - computeUnits: "bsctukmndvowse", - executionTimeout: "ruiougpypny", - platform: "AZURE", - provisioningState: "Accepted", - serverlessAccountLocation: "bkxdfopapbqucyhduewrubjpaei", - serverlessRuntimeConfig: { - cdiConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - cdieConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - }, - serverlessRuntimeNetworkProfile: { - networkInterfaceConfiguration: { - subnetId: "s", - vnetId: "uaqjvtubxccjs", - vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0", - }, - }, - serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }], - serverlessRuntimeUserContextProperties: { userContextToken: "oludf" }, - supplementaryFileLocation: "zmlqtkncwgqhhupsnqluumz", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a InformaticaServerlessRuntimeResource - * - * @summary Create a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json - */ -async function serverlessRuntimesCreateOrUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "-4Z__7"; - const serverlessRuntimeName = "J"; - const resource: InformaticaServerlessRuntimeResource = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesCreateOrUpdate(); - serverlessRuntimesCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesDeleteSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesDeleteSample.ts deleted file mode 100644 index 9f27680ba680..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a InformaticaServerlessRuntimeResource - * - * @summary Delete a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json - */ -async function serverlessRuntimesDelete() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "orgName"; - const serverlessRuntimeName = "serverlessRuntimeName"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginDeleteAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesDelete(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesGetSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesGetSample.ts deleted file mode 100644 index f71186896ff5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesGetSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a InformaticaServerlessRuntimeResource - * - * @summary Get a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json - */ -async function serverlessRuntimesGet() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "e3Y"; - const serverlessRuntimeName = "48-"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.get( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a InformaticaServerlessRuntimeResource - * - * @summary Get a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MinimumSet_Gen.json - */ -async function serverlessRuntimesGetMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "YC"; - const serverlessRuntimeName = "___"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.get( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesGet(); - serverlessRuntimesGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts deleted file mode 100644 index ed78db1318a6..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * - * @summary List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json - */ -async function serverlessRuntimesListByInformaticaOrganizationResource() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "orgName"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.serverlessRuntimes.listByInformaticaOrganizationResource( - resourceGroupName, - organizationName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - serverlessRuntimesListByInformaticaOrganizationResource(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesServerlessResourceByIdSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesServerlessResourceByIdSample.ts deleted file mode 100644 index 408bc4806d9f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesServerlessResourceByIdSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns a serverless runtime resource by ID - * - * @summary Returns a serverless runtime resource by ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json - */ -async function serverlessRuntimesServerlessResourceById() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_RD_R"; - const serverlessRuntimeName = "serverlessRuntimeName159"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.serverlessResourceById( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesServerlessResourceById(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesStartFailedServerlessRuntimeSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesStartFailedServerlessRuntimeSample.ts deleted file mode 100644 index d03e7143543f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesStartFailedServerlessRuntimeSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Starts a failed runtime resource - * - * @summary Starts a failed runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json - */ -async function serverlessRuntimesStartFailedServerlessRuntime() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "9M4"; - const serverlessRuntimeName = "-25-G_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.startFailedServerlessRuntime( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesStartFailedServerlessRuntime(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesUpdateSample.ts deleted file mode 100644 index ba83cdc72095..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesUpdateSample.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaServerlessRuntimeResourceUpdate, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a InformaticaServerlessRuntimeResource - * - * @summary Update a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json - */ -async function serverlessRuntimesUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "W5"; - const serverlessRuntimeName = "t_"; - const properties: InformaticaServerlessRuntimeResourceUpdate = { - properties: { - description: "ocprslpljoikxyduackzqnkuhyzrh", - advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }], - applicationType: "CDI", - computeUnits: "uncwbpu", - executionTimeout: "tjyfytuywriabt", - platform: "AZURE", - serverlessAccountLocation: "goaugkyfanqfnvcmntreibqrswfpis", - serverlessRuntimeConfig: { - cdiConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - cdieConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - }, - serverlessRuntimeNetworkProfile: { - networkInterfaceConfiguration: { - subnetId: "dctcuhgttxhcarwcrgdmsfwksyrzj", - vnetId: "tnsqwwoxydeqqffumdnxlkkb", - vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0", - }, - }, - serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }], - serverlessRuntimeUserContextProperties: { - userContextToken: "ctgebtvjhwh", - }, - supplementaryFileLocation: "csxaqzpxu", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.update( - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a InformaticaServerlessRuntimeResource - * - * @summary Update a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MinimumSet_Gen.json - */ -async function serverlessRuntimesUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_f--"; - const serverlessRuntimeName = "8Zr__"; - const properties: InformaticaServerlessRuntimeResourceUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.update( - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesUpdate(); - serverlessRuntimesUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/README.md b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/README.md deleted file mode 100644 index 83b4b602a2f0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,82 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json | -| [organizationsCreateOrUpdateSample.js][organizationscreateorupdatesample] | Create a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json | -| [organizationsDeleteSample.js][organizationsdeletesample] | Delete a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json | -| [organizationsGetAllServerlessRuntimesSample.js][organizationsgetallserverlessruntimessample] | Gets all serverless runtime resources in a given informatica organization resource. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json | -| [organizationsGetSample.js][organizationsgetsample] | Get a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json | -| [organizationsGetServerlessMetadataSample.js][organizationsgetserverlessmetadatasample] | Gets Metadata of the serverless runtime environment. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json | -| [organizationsListByResourceGroupSample.js][organizationslistbyresourcegroupsample] | List InformaticaOrganizationResource resources by resource group x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json | -| [organizationsListBySubscriptionSample.js][organizationslistbysubscriptionsample] | List InformaticaOrganizationResource resources by subscription ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json | -| [organizationsUpdateSample.js][organizationsupdatesample] | Update a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json | -| [serverlessRuntimesCheckDependenciesSample.js][serverlessruntimescheckdependenciessample] | Checks all dependencies for a serverless runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json | -| [serverlessRuntimesCreateOrUpdateSample.js][serverlessruntimescreateorupdatesample] | Create a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json | -| [serverlessRuntimesDeleteSample.js][serverlessruntimesdeletesample] | Delete a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json | -| [serverlessRuntimesGetSample.js][serverlessruntimesgetsample] | Get a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json | -| [serverlessRuntimesListByInformaticaOrganizationResourceSample.js][serverlessruntimeslistbyinformaticaorganizationresourcesample] | List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json | -| [serverlessRuntimesServerlessResourceByIdSample.js][serverlessruntimesserverlessresourcebyidsample] | Returns a serverless runtime resource by ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json | -| [serverlessRuntimesStartFailedServerlessRuntimeSample.js][serverlessruntimesstartfailedserverlessruntimesample] | Starts a failed runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json | -| [serverlessRuntimesUpdateSample.js][serverlessruntimesupdatesample] | Update a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node operationsListSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env INFORMATICA_SUBSCRIPTION_ID="" node operationsListSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/operationsListSample.js -[organizationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsCreateOrUpdateSample.js -[organizationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsDeleteSample.js -[organizationsgetallserverlessruntimessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetAllServerlessRuntimesSample.js -[organizationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetSample.js -[organizationsgetserverlessmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetServerlessMetadataSample.js -[organizationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListByResourceGroupSample.js -[organizationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListBySubscriptionSample.js -[organizationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsUpdateSample.js -[serverlessruntimescheckdependenciessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCheckDependenciesSample.js -[serverlessruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCreateOrUpdateSample.js -[serverlessruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesDeleteSample.js -[serverlessruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesGetSample.js -[serverlessruntimeslistbyinformaticaorganizationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js -[serverlessruntimesserverlessresourcebyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesServerlessResourceByIdSample.js -[serverlessruntimesstartfailedserverlessruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js -[serverlessruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement/README.md diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/operationsListSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/operationsListSample.js deleted file mode 100644 index 8e1f54eb80b8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/operationsListSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsList() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsList(); - operationsListMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsCreateOrUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsCreateOrUpdateSample.js deleted file mode 100644 index d8012a6c65b2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsCreateOrUpdateSample.js +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a InformaticaOrganizationResource - * - * @summary Create a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json - */ -async function organizationsCreateOrUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "C"; - const resource = { - location: "pamjoudtssthlbhrnfjidr", - properties: { - companyDetails: { - business: "pucosrtjv", - companyName: "xszcggknokhw", - country: "gwkcpnwyaqc", - domain: "utcxetzzpmbvwmjrvphqngvp", - numberOfEmployees: 25, - officeAddress: "sbttzwyajgdbsvipuiclbzvkcvwyil", - }, - informaticaProperties: { - informaticaRegion: "zfqodqpbeflhedypiijdkc", - organizationId: "wtdmhlwhkvgqdumaehgfgiqcxgnqpx", - organizationName: "nomzbvwe", - singleSignOnUrl: "espcbzjhtmgwfdkckhqk", - }, - linkOrganization: { token: "jjfouhoqpumjvrdsfbimgcy" }, - marketplaceDetails: { - marketplaceSubscriptionId: "ovenlecocg", - offerDetails: { - offerId: - "cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty", - planId: "jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp", - planName: - "iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu", - publisherId: - "zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx", - termId: - "tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv", - termUnit: "gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl", - }, - }, - provisioningState: "Accepted", - userDetails: { - emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc", - firstName: "appvdclawzfjntdfdftjevlhvzropnxqtnypid", - lastName: "nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn", - phoneNumber: "fvcjylxlmhdnshsgywnzlyvshu", - upn: "undljch", - }, - }, - tags: { key8430: "cagshqtjlxtqqhdwtchokvxszybp" }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a InformaticaOrganizationResource - * - * @summary Create a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MinimumSet_Gen.json - */ -async function organizationsCreateOrUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "n6v"; - const resource = { - location: "pamjoudtssthlbhrnfjidr", - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - resource, - ); - console.log(result); -} - -async function main() { - organizationsCreateOrUpdate(); - organizationsCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsDeleteSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsDeleteSample.js deleted file mode 100644 index 012d863fdb83..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsDeleteSample.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a InformaticaOrganizationResource - * - * @summary Delete a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json - */ -async function organizationsDelete() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginDeleteAndWait(resourceGroupName, organizationName); - console.log(result); -} - -/** - * This sample demonstrates how to Delete a InformaticaOrganizationResource - * - * @summary Delete a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MinimumSet_Gen.json - */ -async function organizationsDeleteMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginDeleteAndWait(resourceGroupName, organizationName); - console.log(result); -} - -async function main() { - organizationsDelete(); - organizationsDeleteMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetAllServerlessRuntimesSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetAllServerlessRuntimesSample.js deleted file mode 100644 index c569f55bf6f2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetAllServerlessRuntimesSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource. - * - * @summary Gets all serverless runtime resources in a given informatica organization resource. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json - */ -async function organizationsGetAllServerlessRuntimes() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "t"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getAllServerlessRuntimes( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource. - * - * @summary Gets all serverless runtime resources in a given informatica organization resource. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json - */ -async function organizationsGetAllServerlessRuntimesMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "0"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getAllServerlessRuntimes( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGetAllServerlessRuntimes(); - organizationsGetAllServerlessRuntimesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetSample.js deleted file mode 100644 index ba9fd5050a2e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetSample.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a InformaticaOrganizationResource - * - * @summary Get a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json - */ -async function organizationsGet() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "Sg"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.get(resourceGroupName, organizationName); - console.log(result); -} - -/** - * This sample demonstrates how to Get a InformaticaOrganizationResource - * - * @summary Get a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MinimumSet_Gen.json - */ -async function organizationsGetMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "q"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.get(resourceGroupName, organizationName); - console.log(result); -} - -async function main() { - organizationsGet(); - organizationsGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetServerlessMetadataSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetServerlessMetadataSample.js deleted file mode 100644 index 146241655a33..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetServerlessMetadataSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets Metadata of the serverless runtime environment. - * - * @summary Gets Metadata of the serverless runtime environment. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json - */ -async function organizationsGetServerlessMetadata() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "3_UC"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getServerlessMetadata( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Gets Metadata of the serverless runtime environment. - * - * @summary Gets Metadata of the serverless runtime environment. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MinimumSet_Gen.json - */ -async function organizationsGetServerlessMetadataMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "A"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getServerlessMetadata( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGetServerlessMetadata(); - organizationsGetServerlessMetadataMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListByResourceGroupSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListByResourceGroupSample.js deleted file mode 100644 index 28dc1cefdc6c..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListByResourceGroupSample.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by resource group - * - * @summary List InformaticaOrganizationResource resources by resource group - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json - */ -async function organizationsListByResourceGroup() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by resource group - * - * @summary List InformaticaOrganizationResource resources by resource group - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MinimumSet_Gen.json - */ -async function organizationsListByResourceGroupMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - organizationsListByResourceGroup(); - organizationsListByResourceGroupMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListBySubscriptionSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListBySubscriptionSample.js deleted file mode 100644 index d39caddc216f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListBySubscriptionSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID - * - * @summary List InformaticaOrganizationResource resources by subscription ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json - */ -async function organizationsListBySubscription() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID - * - * @summary List InformaticaOrganizationResource resources by subscription ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MinimumSet_Gen.json - */ -async function organizationsListBySubscriptionMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - organizationsListBySubscription(); - organizationsListBySubscriptionMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsUpdateSample.js deleted file mode 100644 index e59149b0669d..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsUpdateSample.js +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a InformaticaOrganizationResource - * - * @summary Update a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json - */ -async function organizationsUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const properties = { - properties: { - companyDetails: { - business: "mwqblnruflwpolgbxpqbqneve", - companyName: "xkrvbozrjcvappqeeyt", - country: "rvlzppgvopcw", - domain: "dponvwnrdrnzahcurqssesukbsokdd", - numberOfEmployees: 22, - officeAddress: "sfcx", - }, - existingResourceId: "uvwlcphdfkqnhrtddpsiacbowcxxo", - marketplaceDetails: { - marketplaceSubscriptionId: "szhyxzgjtssjmlguivepc", - offerDetails: { - offerId: "idaxbflabvjsippplyenvrpgeydsjxcmyubgukffkcdvlvrtwpdhnvdblxjsldiuswrchsibk", - planId: "giihvvnwdwzkfqrhkpqzbgfotzyixnsvmxzauseebillhslauglzfxzvzvts", - planName: - "tfqjenotaewzdeerliteqxdawuqxhwdzbtiiimsaedrlsnbdoonnloakjtvnwhhrcyxxsgoachguthqvlahpjyofpoqpfacfmiaauawazkmxkjgvktbptojknzojtjrfzvbbjjkvstabqyaczxinijhoxrjukftsagpwgsvpmczopztmplipyufhuaumfx", - publisherId: - "ktzfghsyjqbsswhltoaemgotmnorhdogvkaxplutbjjqzuepxizliynyakersobagvpwvpzwjtjjxigsqgcyqaahaxdijghnexliofhfjlqzjmmbvrhcvjxdodnexxizbgfhjopbwzjojxsluasnwwsgcajefglbcvzpaeblanhmurcculndtfwnfjyxol", - termId: "eolmwogtgpdncqoigqcdomupwummaicwvdxgbskpdsmjizdfbdgbxbuekcpwmenqzbhqxpdnjtup", - termUnit: "nykqoplazujcwmfldntifjqrnx", - }, - }, - userDetails: { - emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc", - firstName: "qguqrmanyupoi", - lastName: "ugzg", - phoneNumber: "uxa", - upn: "viwjrkn", - }, - }, - tags: { key1918: "fbjvtuvzsghpl" }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.update(resourceGroupName, organizationName, properties); - console.log(result); -} - -/** - * This sample demonstrates how to Update a InformaticaOrganizationResource - * - * @summary Update a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MinimumSet_Gen.json - */ -async function organizationsUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "-"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.update(resourceGroupName, organizationName, properties); - console.log(result); -} - -async function main() { - organizationsUpdate(); - organizationsUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/package.json b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/package.json deleted file mode 100644 index bf3938b37bf6..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-informaticadatamanagement-js-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/informatica/arm-informaticadatamanagement" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement", - "dependencies": { - "@azure/arm-informaticadatamanagement": "next", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/sample.env b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCheckDependenciesSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCheckDependenciesSample.js deleted file mode 100644 index 861f81742a06..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCheckDependenciesSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Checks all dependencies for a serverless runtime resource - * - * @summary Checks all dependencies for a serverless runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json - */ -async function serverlessRuntimesCheckDependencies() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "3P"; - const serverlessRuntimeName = "M"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.checkDependencies( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Checks all dependencies for a serverless runtime resource - * - * @summary Checks all dependencies for a serverless runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json - */ -async function serverlessRuntimesCheckDependenciesMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const serverlessRuntimeName = "_2_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.checkDependencies( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesCheckDependencies(); - serverlessRuntimesCheckDependenciesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCreateOrUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCreateOrUpdateSample.js deleted file mode 100644 index 6c92d3a0ea41..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCreateOrUpdateSample.js +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a InformaticaServerlessRuntimeResource - * - * @summary Create a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json - */ -async function serverlessRuntimesCreateOrUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "__C"; - const serverlessRuntimeName = "0j-__"; - const resource = { - properties: { - description: "mqkaenjmxakvzrwmirelmhgiedto", - advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }], - applicationType: "CDI", - computeUnits: "bsctukmndvowse", - executionTimeout: "ruiougpypny", - platform: "AZURE", - provisioningState: "Accepted", - serverlessAccountLocation: "bkxdfopapbqucyhduewrubjpaei", - serverlessRuntimeConfig: { - cdiConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - cdieConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - }, - serverlessRuntimeNetworkProfile: { - networkInterfaceConfiguration: { - subnetId: "s", - vnetId: "uaqjvtubxccjs", - vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0", - }, - }, - serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }], - serverlessRuntimeUserContextProperties: { userContextToken: "oludf" }, - supplementaryFileLocation: "zmlqtkncwgqhhupsnqluumz", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a InformaticaServerlessRuntimeResource - * - * @summary Create a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json - */ -async function serverlessRuntimesCreateOrUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "-4Z__7"; - const serverlessRuntimeName = "J"; - const resource = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesCreateOrUpdate(); - serverlessRuntimesCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesDeleteSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesDeleteSample.js deleted file mode 100644 index 7160c2fdf0dc..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a InformaticaServerlessRuntimeResource - * - * @summary Delete a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json - */ -async function serverlessRuntimesDelete() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "orgName"; - const serverlessRuntimeName = "serverlessRuntimeName"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginDeleteAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesDelete(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesGetSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesGetSample.js deleted file mode 100644 index 9f568bf20907..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesGetSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a InformaticaServerlessRuntimeResource - * - * @summary Get a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json - */ -async function serverlessRuntimesGet() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "e3Y"; - const serverlessRuntimeName = "48-"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.get( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a InformaticaServerlessRuntimeResource - * - * @summary Get a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MinimumSet_Gen.json - */ -async function serverlessRuntimesGetMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "YC"; - const serverlessRuntimeName = "___"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.get( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesGet(); - serverlessRuntimesGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js deleted file mode 100644 index fb33cf28d5df..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * - * @summary List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json - */ -async function serverlessRuntimesListByInformaticaOrganizationResource() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "orgName"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.serverlessRuntimes.listByInformaticaOrganizationResource( - resourceGroupName, - organizationName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - serverlessRuntimesListByInformaticaOrganizationResource(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesServerlessResourceByIdSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesServerlessResourceByIdSample.js deleted file mode 100644 index ed66c32d94a7..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesServerlessResourceByIdSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns a serverless runtime resource by ID - * - * @summary Returns a serverless runtime resource by ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json - */ -async function serverlessRuntimesServerlessResourceById() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_RD_R"; - const serverlessRuntimeName = "serverlessRuntimeName159"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.serverlessResourceById( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesServerlessResourceById(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js deleted file mode 100644 index 82793f841856..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Starts a failed runtime resource - * - * @summary Starts a failed runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json - */ -async function serverlessRuntimesStartFailedServerlessRuntime() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "9M4"; - const serverlessRuntimeName = "-25-G_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.startFailedServerlessRuntime( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesStartFailedServerlessRuntime(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesUpdateSample.js deleted file mode 100644 index 6256c00f3088..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesUpdateSample.js +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a InformaticaServerlessRuntimeResource - * - * @summary Update a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json - */ -async function serverlessRuntimesUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "W5"; - const serverlessRuntimeName = "t_"; - const properties = { - properties: { - description: "ocprslpljoikxyduackzqnkuhyzrh", - advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }], - applicationType: "CDI", - computeUnits: "uncwbpu", - executionTimeout: "tjyfytuywriabt", - platform: "AZURE", - serverlessAccountLocation: "goaugkyfanqfnvcmntreibqrswfpis", - serverlessRuntimeConfig: { - cdiConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - cdieConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - }, - serverlessRuntimeNetworkProfile: { - networkInterfaceConfiguration: { - subnetId: "dctcuhgttxhcarwcrgdmsfwksyrzj", - vnetId: "tnsqwwoxydeqqffumdnxlkkb", - vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0", - }, - }, - serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }], - serverlessRuntimeUserContextProperties: { - userContextToken: "ctgebtvjhwh", - }, - supplementaryFileLocation: "csxaqzpxu", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.update( - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a InformaticaServerlessRuntimeResource - * - * @summary Update a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MinimumSet_Gen.json - */ -async function serverlessRuntimesUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_f--"; - const serverlessRuntimeName = "8Zr__"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.update( - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesUpdate(); - serverlessRuntimesUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/README.md b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/README.md deleted file mode 100644 index be4bf5297faa..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json | -| [organizationsCreateOrUpdateSample.ts][organizationscreateorupdatesample] | Create a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json | -| [organizationsDeleteSample.ts][organizationsdeletesample] | Delete a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json | -| [organizationsGetAllServerlessRuntimesSample.ts][organizationsgetallserverlessruntimessample] | Gets all serverless runtime resources in a given informatica organization resource. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json | -| [organizationsGetSample.ts][organizationsgetsample] | Get a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json | -| [organizationsGetServerlessMetadataSample.ts][organizationsgetserverlessmetadatasample] | Gets Metadata of the serverless runtime environment. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json | -| [organizationsListByResourceGroupSample.ts][organizationslistbyresourcegroupsample] | List InformaticaOrganizationResource resources by resource group x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json | -| [organizationsListBySubscriptionSample.ts][organizationslistbysubscriptionsample] | List InformaticaOrganizationResource resources by subscription ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json | -| [organizationsUpdateSample.ts][organizationsupdatesample] | Update a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json | -| [serverlessRuntimesCheckDependenciesSample.ts][serverlessruntimescheckdependenciessample] | Checks all dependencies for a serverless runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json | -| [serverlessRuntimesCreateOrUpdateSample.ts][serverlessruntimescreateorupdatesample] | Create a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json | -| [serverlessRuntimesDeleteSample.ts][serverlessruntimesdeletesample] | Delete a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json | -| [serverlessRuntimesGetSample.ts][serverlessruntimesgetsample] | Get a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json | -| [serverlessRuntimesListByInformaticaOrganizationResourceSample.ts][serverlessruntimeslistbyinformaticaorganizationresourcesample] | List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json | -| [serverlessRuntimesServerlessResourceByIdSample.ts][serverlessruntimesserverlessresourcebyidsample] | Returns a serverless runtime resource by ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json | -| [serverlessRuntimesStartFailedServerlessRuntimeSample.ts][serverlessruntimesstartfailedserverlessruntimesample] | Starts a failed runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json | -| [serverlessRuntimesUpdateSample.ts][serverlessruntimesupdatesample] | Update a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/operationsListSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env INFORMATICA_SUBSCRIPTION_ID="" node dist/operationsListSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/operationsListSample.ts -[organizationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsCreateOrUpdateSample.ts -[organizationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsDeleteSample.ts -[organizationsgetallserverlessruntimessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetAllServerlessRuntimesSample.ts -[organizationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetSample.ts -[organizationsgetserverlessmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetServerlessMetadataSample.ts -[organizationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListByResourceGroupSample.ts -[organizationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListBySubscriptionSample.ts -[organizationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsUpdateSample.ts -[serverlessruntimescheckdependenciessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCheckDependenciesSample.ts -[serverlessruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts -[serverlessruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesDeleteSample.ts -[serverlessruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesGetSample.ts -[serverlessruntimeslistbyinformaticaorganizationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts -[serverlessruntimesserverlessresourcebyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts -[serverlessruntimesstartfailedserverlessruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts -[serverlessruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/package.json b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/package.json deleted file mode 100644 index 23416edc42b7..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-informaticadatamanagement-ts-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/informatica/arm-informaticadatamanagement" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement", - "dependencies": { - "@azure/arm-informaticadatamanagement": "next", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.5.3", - "rimraf": "latest" - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/sample.env b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/operationsListSample.ts deleted file mode 100644 index 625c22a1efb8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json - */ -async function operationsList() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MinimumSet_Gen.json - */ -async function operationsListMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - operationsList(); - operationsListMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsCreateOrUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsCreateOrUpdateSample.ts deleted file mode 100644 index b155d1450654..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsCreateOrUpdateSample.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaOrganizationResource, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a InformaticaOrganizationResource - * - * @summary Create a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json - */ -async function organizationsCreateOrUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "C"; - const resource: InformaticaOrganizationResource = { - location: "pamjoudtssthlbhrnfjidr", - properties: { - companyDetails: { - business: "pucosrtjv", - companyName: "xszcggknokhw", - country: "gwkcpnwyaqc", - domain: "utcxetzzpmbvwmjrvphqngvp", - numberOfEmployees: 25, - officeAddress: "sbttzwyajgdbsvipuiclbzvkcvwyil", - }, - informaticaProperties: { - informaticaRegion: "zfqodqpbeflhedypiijdkc", - organizationId: "wtdmhlwhkvgqdumaehgfgiqcxgnqpx", - organizationName: "nomzbvwe", - singleSignOnUrl: "espcbzjhtmgwfdkckhqk", - }, - linkOrganization: { token: "jjfouhoqpumjvrdsfbimgcy" }, - marketplaceDetails: { - marketplaceSubscriptionId: "ovenlecocg", - offerDetails: { - offerId: - "cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty", - planId: "jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp", - planName: - "iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu", - publisherId: - "zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx", - termId: - "tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv", - termUnit: "gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl", - }, - }, - provisioningState: "Accepted", - userDetails: { - emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc", - firstName: "appvdclawzfjntdfdftjevlhvzropnxqtnypid", - lastName: "nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn", - phoneNumber: "fvcjylxlmhdnshsgywnzlyvshu", - upn: "undljch", - }, - }, - tags: { key8430: "cagshqtjlxtqqhdwtchokvxszybp" }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a InformaticaOrganizationResource - * - * @summary Create a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MinimumSet_Gen.json - */ -async function organizationsCreateOrUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "n6v"; - const resource: InformaticaOrganizationResource = { - location: "pamjoudtssthlbhrnfjidr", - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - resource, - ); - console.log(result); -} - -async function main() { - organizationsCreateOrUpdate(); - organizationsCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsDeleteSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsDeleteSample.ts deleted file mode 100644 index e3118f73f986..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsDeleteSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a InformaticaOrganizationResource - * - * @summary Delete a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json - */ -async function organizationsDelete() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginDeleteAndWait( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete a InformaticaOrganizationResource - * - * @summary Delete a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MinimumSet_Gen.json - */ -async function organizationsDeleteMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.beginDeleteAndWait( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsDelete(); - organizationsDeleteMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetAllServerlessRuntimesSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetAllServerlessRuntimesSample.ts deleted file mode 100644 index d42d4c373abd..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetAllServerlessRuntimesSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource. - * - * @summary Gets all serverless runtime resources in a given informatica organization resource. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json - */ -async function organizationsGetAllServerlessRuntimes() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "t"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getAllServerlessRuntimes( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource. - * - * @summary Gets all serverless runtime resources in a given informatica organization resource. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json - */ -async function organizationsGetAllServerlessRuntimesMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "0"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getAllServerlessRuntimes( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGetAllServerlessRuntimes(); - organizationsGetAllServerlessRuntimesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetSample.ts deleted file mode 100644 index 5789f4d93da5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a InformaticaOrganizationResource - * - * @summary Get a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json - */ -async function organizationsGet() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "Sg"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.get( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a InformaticaOrganizationResource - * - * @summary Get a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MinimumSet_Gen.json - */ -async function organizationsGetMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "q"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.get( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGet(); - organizationsGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetServerlessMetadataSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetServerlessMetadataSample.ts deleted file mode 100644 index 907c53543908..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetServerlessMetadataSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets Metadata of the serverless runtime environment. - * - * @summary Gets Metadata of the serverless runtime environment. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json - */ -async function organizationsGetServerlessMetadata() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "3_UC"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getServerlessMetadata( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Gets Metadata of the serverless runtime environment. - * - * @summary Gets Metadata of the serverless runtime environment. - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MinimumSet_Gen.json - */ -async function organizationsGetServerlessMetadataMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "A"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.getServerlessMetadata( - resourceGroupName, - organizationName, - ); - console.log(result); -} - -async function main() { - organizationsGetServerlessMetadata(); - organizationsGetServerlessMetadataMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListByResourceGroupSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListByResourceGroupSample.ts deleted file mode 100644 index 76baefc06803..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListByResourceGroupSample.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by resource group - * - * @summary List InformaticaOrganizationResource resources by resource group - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json - */ -async function organizationsListByResourceGroup() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by resource group - * - * @summary List InformaticaOrganizationResource resources by resource group - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MinimumSet_Gen.json - */ -async function organizationsListByResourceGroupMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - organizationsListByResourceGroup(); - organizationsListByResourceGroupMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListBySubscriptionSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListBySubscriptionSample.ts deleted file mode 100644 index f8366422c2fc..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListBySubscriptionSample.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID - * - * @summary List InformaticaOrganizationResource resources by subscription ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json - */ -async function organizationsListBySubscription() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID - * - * @summary List InformaticaOrganizationResource resources by subscription ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MinimumSet_Gen.json - */ -async function organizationsListBySubscriptionMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - organizationsListBySubscription(); - organizationsListBySubscriptionMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsUpdateSample.ts deleted file mode 100644 index 1deee9ca5bc8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsUpdateSample.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaOrganizationResourceUpdate, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a InformaticaOrganizationResource - * - * @summary Update a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json - */ -async function organizationsUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const properties: InformaticaOrganizationResourceUpdate = { - properties: { - companyDetails: { - business: "mwqblnruflwpolgbxpqbqneve", - companyName: "xkrvbozrjcvappqeeyt", - country: "rvlzppgvopcw", - domain: "dponvwnrdrnzahcurqssesukbsokdd", - numberOfEmployees: 22, - officeAddress: "sfcx", - }, - existingResourceId: "uvwlcphdfkqnhrtddpsiacbowcxxo", - marketplaceDetails: { - marketplaceSubscriptionId: "szhyxzgjtssjmlguivepc", - offerDetails: { - offerId: - "idaxbflabvjsippplyenvrpgeydsjxcmyubgukffkcdvlvrtwpdhnvdblxjsldiuswrchsibk", - planId: - "giihvvnwdwzkfqrhkpqzbgfotzyixnsvmxzauseebillhslauglzfxzvzvts", - planName: - "tfqjenotaewzdeerliteqxdawuqxhwdzbtiiimsaedrlsnbdoonnloakjtvnwhhrcyxxsgoachguthqvlahpjyofpoqpfacfmiaauawazkmxkjgvktbptojknzojtjrfzvbbjjkvstabqyaczxinijhoxrjukftsagpwgsvpmczopztmplipyufhuaumfx", - publisherId: - "ktzfghsyjqbsswhltoaemgotmnorhdogvkaxplutbjjqzuepxizliynyakersobagvpwvpzwjtjjxigsqgcyqaahaxdijghnexliofhfjlqzjmmbvrhcvjxdodnexxizbgfhjopbwzjojxsluasnwwsgcajefglbcvzpaeblanhmurcculndtfwnfjyxol", - termId: - "eolmwogtgpdncqoigqcdomupwummaicwvdxgbskpdsmjizdfbdgbxbuekcpwmenqzbhqxpdnjtup", - termUnit: "nykqoplazujcwmfldntifjqrnx", - }, - }, - userDetails: { - emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc", - firstName: "qguqrmanyupoi", - lastName: "ugzg", - phoneNumber: "uxa", - upn: "viwjrkn", - }, - }, - tags: { key1918: "fbjvtuvzsghpl" }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.update( - resourceGroupName, - organizationName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a InformaticaOrganizationResource - * - * @summary Update a InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MinimumSet_Gen.json - */ -async function organizationsUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "-"; - const properties: InformaticaOrganizationResourceUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.organizations.update( - resourceGroupName, - organizationName, - properties, - ); - console.log(result); -} - -async function main() { - organizationsUpdate(); - organizationsUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCheckDependenciesSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCheckDependenciesSample.ts deleted file mode 100644 index 6604c9c3ba6b..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCheckDependenciesSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Checks all dependencies for a serverless runtime resource - * - * @summary Checks all dependencies for a serverless runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json - */ -async function serverlessRuntimesCheckDependencies() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "3P"; - const serverlessRuntimeName = "M"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.checkDependencies( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Checks all dependencies for a serverless runtime resource - * - * @summary Checks all dependencies for a serverless runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json - */ -async function serverlessRuntimesCheckDependenciesMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_-"; - const serverlessRuntimeName = "_2_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.checkDependencies( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesCheckDependencies(); - serverlessRuntimesCheckDependenciesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts deleted file mode 100644 index 6a6bcf9ec013..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaServerlessRuntimeResource, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a InformaticaServerlessRuntimeResource - * - * @summary Create a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json - */ -async function serverlessRuntimesCreateOrUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "__C"; - const serverlessRuntimeName = "0j-__"; - const resource: InformaticaServerlessRuntimeResource = { - properties: { - description: "mqkaenjmxakvzrwmirelmhgiedto", - advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }], - applicationType: "CDI", - computeUnits: "bsctukmndvowse", - executionTimeout: "ruiougpypny", - platform: "AZURE", - provisioningState: "Accepted", - serverlessAccountLocation: "bkxdfopapbqucyhduewrubjpaei", - serverlessRuntimeConfig: { - cdiConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - cdieConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - }, - serverlessRuntimeNetworkProfile: { - networkInterfaceConfiguration: { - subnetId: "s", - vnetId: "uaqjvtubxccjs", - vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0", - }, - }, - serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }], - serverlessRuntimeUserContextProperties: { userContextToken: "oludf" }, - supplementaryFileLocation: "zmlqtkncwgqhhupsnqluumz", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a InformaticaServerlessRuntimeResource - * - * @summary Create a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json - */ -async function serverlessRuntimesCreateOrUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "-4Z__7"; - const serverlessRuntimeName = "J"; - const resource: InformaticaServerlessRuntimeResource = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesCreateOrUpdate(); - serverlessRuntimesCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesDeleteSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesDeleteSample.ts deleted file mode 100644 index 9f27680ba680..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a InformaticaServerlessRuntimeResource - * - * @summary Delete a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json - */ -async function serverlessRuntimesDelete() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "orgName"; - const serverlessRuntimeName = "serverlessRuntimeName"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.beginDeleteAndWait( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesDelete(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesGetSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesGetSample.ts deleted file mode 100644 index f71186896ff5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesGetSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a InformaticaServerlessRuntimeResource - * - * @summary Get a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json - */ -async function serverlessRuntimesGet() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "e3Y"; - const serverlessRuntimeName = "48-"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.get( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a InformaticaServerlessRuntimeResource - * - * @summary Get a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MinimumSet_Gen.json - */ -async function serverlessRuntimesGetMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "YC"; - const serverlessRuntimeName = "___"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.get( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesGet(); - serverlessRuntimesGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts deleted file mode 100644 index ed78db1318a6..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * - * @summary List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json - */ -async function serverlessRuntimesListByInformaticaOrganizationResource() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "orgName"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.serverlessRuntimes.listByInformaticaOrganizationResource( - resourceGroupName, - organizationName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - serverlessRuntimesListByInformaticaOrganizationResource(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts deleted file mode 100644 index 408bc4806d9f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns a serverless runtime resource by ID - * - * @summary Returns a serverless runtime resource by ID - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json - */ -async function serverlessRuntimesServerlessResourceById() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_RD_R"; - const serverlessRuntimeName = "serverlessRuntimeName159"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.serverlessResourceById( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesServerlessResourceById(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts deleted file mode 100644 index d03e7143543f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Starts a failed runtime resource - * - * @summary Starts a failed runtime resource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json - */ -async function serverlessRuntimesStartFailedServerlessRuntime() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "9M4"; - const serverlessRuntimeName = "-25-G_"; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.startFailedServerlessRuntime( - resourceGroupName, - organizationName, - serverlessRuntimeName, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesStartFailedServerlessRuntime(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesUpdateSample.ts deleted file mode 100644 index ba83cdc72095..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesUpdateSample.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InformaticaServerlessRuntimeResourceUpdate, - InformaticaDataManagement, -} from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a InformaticaServerlessRuntimeResource - * - * @summary Update a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json - */ -async function serverlessRuntimesUpdate() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "W5"; - const serverlessRuntimeName = "t_"; - const properties: InformaticaServerlessRuntimeResourceUpdate = { - properties: { - description: "ocprslpljoikxyduackzqnkuhyzrh", - advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }], - applicationType: "CDI", - computeUnits: "uncwbpu", - executionTimeout: "tjyfytuywriabt", - platform: "AZURE", - serverlessAccountLocation: "goaugkyfanqfnvcmntreibqrswfpis", - serverlessRuntimeConfig: { - cdiConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - cdieConfigProps: [ - { - applicationConfigs: [ - { - name: "upfvjrqcrwwedfujkmsodeinw", - type: "lw", - customized: "j", - defaultValue: "zvgkqwmi", - platform: "dixfyeobngivyvf", - value: "mozgsetpwjmtyl", - }, - ], - engineName: "hngsdqvtjdhwqlbqfotipaiwjuys", - engineVersion: "zlrlbg", - }, - ], - }, - serverlessRuntimeNetworkProfile: { - networkInterfaceConfiguration: { - subnetId: "dctcuhgttxhcarwcrgdmsfwksyrzj", - vnetId: "tnsqwwoxydeqqffumdnxlkkb", - vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0", - }, - }, - serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }], - serverlessRuntimeUserContextProperties: { - userContextToken: "ctgebtvjhwh", - }, - supplementaryFileLocation: "csxaqzpxu", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.update( - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a InformaticaServerlessRuntimeResource - * - * @summary Update a InformaticaServerlessRuntimeResource - * x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MinimumSet_Gen.json - */ -async function serverlessRuntimesUpdateMin() { - const subscriptionId = - process.env["INFORMATICA_SUBSCRIPTION_ID"] || - "3599DA28-E346-4D9F-811E-189C0445F0FE"; - const resourceGroupName = - process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi"; - const organizationName = "_f--"; - const serverlessRuntimeName = "8Zr__"; - const properties: InformaticaServerlessRuntimeResourceUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new InformaticaDataManagement(credential, subscriptionId); - const result = await client.serverlessRuntimes.update( - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - ); - console.log(result); -} - -async function main() { - serverlessRuntimesUpdate(); - serverlessRuntimesUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/tsconfig.json b/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/tsconfig.json deleted file mode 100644 index e26ce2a6d8f7..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts b/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts index da50f3348507..13d00468a7a5 100644 --- a/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts +++ b/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts @@ -58,7 +58,7 @@ export class InformaticaDataManagement extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-informaticadatamanagement/1.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-informaticadatamanagement/1.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts b/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts index 1958a76fdca5..8c92e2e0375c 100644 --- a/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts +++ b/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts @@ -163,7 +163,7 @@ export interface InformaticaProperties { /** Marketplace details. */ export interface MarketplaceDetails { /** Marketplace Subscription Id */ - marketplaceSubscriptionId: string; + marketplaceSubscriptionId?: string; /** Marketplace offer details. */ offerDetails: OfferDetails; } diff --git a/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts b/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts index 961ba1a2744f..5ba1f7caa160 100644 --- a/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts +++ b/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts @@ -334,7 +334,6 @@ export const MarketplaceDetails: coreClient.CompositeMapper = { modelProperties: { marketplaceSubscriptionId: { serializedName: "marketplaceSubscriptionId", - required: true, type: { name: "String", }, @@ -1046,7 +1045,7 @@ export const InfaServerlessFetchConfigProperties: coreClient.CompositeMapper = { tenantId: { serializedName: "tenantId", type: { - name: "String", + name: "Uuid", }, }, subscriptionId: { diff --git a/sdk/informatica/arm-informaticadatamanagement/test/informaticadatamanagement_operations_test.spec.ts b/sdk/informatica/arm-informaticadatamanagement/test/informaticadatamanagement_operations_test.spec.ts deleted file mode 100644 index d38f874fba98..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/test/informaticadatamanagement_operations_test.spec.ts +++ /dev/null @@ -1,69 +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 { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { InformaticaDataManagement } from "../src/informaticaDataManagement"; - -const replaceableVariables: Record = { - SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("InformaticaDataManagement test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: InformaticaDataManagement; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new InformaticaDataManagement(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus2euap"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}) diff --git a/sdk/informatica/arm-informaticadatamanagement/test/sampleTest.ts b/sdk/informatica/arm-informaticadatamanagement/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/informatica/arm-informaticadatamanagement/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/informatica/arm-informaticadatamanagement/tsconfig.json b/sdk/informatica/arm-informaticadatamanagement/tsconfig.json index b1f56547b6d3..3e6ae96443f3 100644 --- a/sdk/informatica/arm-informaticadatamanagement/tsconfig.json +++ b/sdk/informatica/arm-informaticadatamanagement/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-informaticadatamanagement": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"