diff --git a/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md b/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md deleted file mode 100644 index 431756b362f5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/CHANGELOG.md +++ /dev/null @@ -1,17 +0,0 @@ -# Release History - -## 1.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0 (2024-07-15) - -### Features Added - -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/LICENSE b/sdk/informatica/arm-informaticadatamanagement/LICENSE deleted file mode 100644 index b2f52a2bad4e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) Microsoft Corporation. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/sdk/informatica/arm-informaticadatamanagement/README.md b/sdk/informatica/arm-informaticadatamanagement/README.md deleted file mode 100644 index 658b574d8725..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/README.md +++ /dev/null @@ -1,114 +0,0 @@ -# Azure InformaticaDataManagement client library for JavaScript - -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure InformaticaDataManagement client. - -[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://learn.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement) | -[Samples](https://github.com/Azure-Samples/azure-samples-js-management) - -## Getting started - -### Currently supported environments - -- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) -- Latest versions of Safari, Chrome, Edge and Firefox. - -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - -### Prerequisites - -- An [Azure subscription][azure_sub]. - -### Install the `@azure/arm-informaticadatamanagement` package - -Install the Azure InformaticaDataManagement client library for JavaScript with `npm`: - -```bash -npm install @azure/arm-informaticadatamanagement -``` - -### Create and authenticate a `InformaticaDataManagement` - -To create a client object to access the Azure InformaticaDataManagement API, you will need the `endpoint` of your Azure InformaticaDataManagement resource and a `credential`. The Azure InformaticaDataManagement client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure InformaticaDataManagement resource in the [Azure Portal][azure_portal]. - -You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). - -To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: - -```bash -npm install @azure/identity -``` - -You will also need to **register a new AAD application and grant access to Azure InformaticaDataManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. - -For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). - -Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client. - -```ts snippet:ReadmeSampleCreateClient_Node -import { AstroManagementClient } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; - -const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new AstroManagementClient(new DefaultAzureCredential(), subscriptionId); -``` - -For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate. - -```ts snippet:ReadmeSampleCreateClient_Browser -import { InteractiveBrowserCredential } from "@azure/identity"; -import { AstroManagementClient } from "@azure/arm-informaticadatamanagement"; - -const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const credential = new InteractiveBrowserCredential({ - tenantId: "", - clientId: "", -}); -const client = new AstroManagementClient(credential, subscriptionId); -``` - -### JavaScript Bundle - -To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). - -## Key concepts - -### InformaticaDataManagement - -`InformaticaDataManagement` is the primary interface for developers using the Azure InformaticaDataManagement client library. Explore the methods on this client object to understand the different features of the Azure InformaticaDataManagement service that you can access. - -## Troubleshooting - -### Logging - -Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: - -```ts snippet:SetLogLevel -import { setLogLevel } from "@azure/logger"; - -setLogLevel("info"); -``` - -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). - -## Next steps - -Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. - -## Contributing - -If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. - -## Related projects - -- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - -[azure_cli]: https://learn.microsoft.com/cli/azure -[azure_sub]: https://azure.microsoft.com/free/ -[azure_sub]: https://azure.microsoft.com/free/ -[azure_portal]: https://portal.azure.com -[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity -[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/informatica/arm-informaticadatamanagement/_meta.json b/sdk/informatica/arm-informaticadatamanagement/_meta.json deleted file mode 100644 index 629b7563990d..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/_meta.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "commit": "1aa912658531534e4e57ea613591075f7b97897c", - "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.23 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.11", - "use": "@autorest/typescript@6.0.23" -} diff --git a/sdk/informatica/arm-informaticadatamanagement/api-extractor.json b/sdk/informatica/arm-informaticadatamanagement/api-extractor.json deleted file mode 100644 index e25cc6b13a13..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/api-extractor.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "dist/esm/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, - "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "dist/arm-informaticadatamanagement.d.ts" - }, - "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, - "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } - } - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/assets.json b/sdk/informatica/arm-informaticadatamanagement/assets.json deleted file mode 100644 index aedfac46f0fd..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_0620a6eaea" -} diff --git a/sdk/informatica/arm-informaticadatamanagement/package.json b/sdk/informatica/arm-informaticadatamanagement/package.json deleted file mode 100644 index 94b66d5c99bd..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/package.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "name": "@azure/arm-informaticadatamanagement", - "sdk-type": "mgmt", - "author": "Microsoft Corporation", - "description": "A generated SDK for InformaticaDataManagement.", - "version": "1.0.1", - "engines": { - "node": ">=18.0.0" - }, - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", - "@azure/core-lro": "^2.5.4", - "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.0", - "tslib": "^2.8.1" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic", - "cloud" - ], - "license": "MIT", - "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", - "types": "./dist/commonjs/index.d.ts", - "devDependencies": { - "@azure-tools/test-credential": "^2.0.0", - "@azure-tools/test-recorder": "^4.1.0", - "@azure-tools/test-utils-vitest": "^1.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", - "@azure/logger": "^1.1.4", - "@types/node": "^18.0.0", - "@vitest/browser": "^3.0.3", - "@vitest/coverage-istanbul": "^3.0.3", - "dotenv": "^16.0.0", - "playwright": "^1.50.1", - "typescript": "~5.7.2", - "vitest": "^3.0.3" - }, - "repository": "github:Azure/azure-sdk-for-js", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "files": [ - "dist/", - "README.md", - "LICENSE", - "review/", - "CHANGELOG.md" - ], - "scripts": { - "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", - "build:browser": "echo skipped", - "build:node": "echo skipped", - "build:samples": "echo skipped.", - "build:test": "echo skipped", - "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", - "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:vitest --esm", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", - "test": "npm run integration-test", - "test:browser": "echo skipped", - "test:node": "echo skipped", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:vitest", - "update-snippets": "dev-tool run update-snippets" - }, - "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/informaticaDataManagement.ts", - "prefix": "packageDetails" - } - ] - }, - "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://learn.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview" - }, - "type": "module", - "tshy": { - "project": "./tsconfig.src.json", - "exports": { - "./package.json": "./package.json", - ".": "./src/index.ts" - }, - "dialects": [ - "esm", - "commonjs" - ], - "esmDialects": [ - "browser", - "react-native" - ], - "selfLink": false - }, - "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js", - "exports": { - "./package.json": "./package.json", - ".": { - "browser": { - "types": "./dist/browser/index.d.ts", - "default": "./dist/browser/index.js" - }, - "react-native": { - "types": "./dist/react-native/index.d.ts", - "default": "./dist/react-native/index.js" - }, - "import": { - "types": "./dist/esm/index.d.ts", - "default": "./dist/esm/index.js" - }, - "require": { - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/commonjs/index.js" - } - } - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md b/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md deleted file mode 100644 index d214c9efd823..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/review/arm-informaticadatamanagement.api.md +++ /dev/null @@ -1,727 +0,0 @@ -## API Report File for "@azure/arm-informaticadatamanagement" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import * as coreAuth from '@azure/core-auth'; -import * as coreClient from '@azure/core-client'; -import { OperationState } from '@azure/core-lro'; -import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { SimplePollerLike } from '@azure/core-lro'; - -// @public -export type ActionType = string; - -// @public -export interface AdvancedCustomProperties { - key?: string; - value?: string; -} - -// @public -export interface ApplicationConfigs { - customized: string; - defaultValue: string; - name: string; - platform: string; - type: string; - value: string; -} - -// @public -export type ApplicationType = string; - -// @public -export interface ApplicationTypeMetadata { - name?: string; - value?: string; -} - -// @public -export interface CdiConfigProps { - applicationConfigs: ApplicationConfigs[]; - engineName: string; - engineVersion: string; -} - -// @public -export interface CheckDependenciesResponse { - count: number; - id: string; - references: ServerlessRuntimeDependency[]; -} - -// @public -export interface CompanyDetails { - business?: string; - companyName?: string; - country?: string; - domain?: string; - numberOfEmployees?: number; - officeAddress?: string; -} - -// @public -export interface CompanyDetailsUpdate { - business?: string; - companyName?: string; - country?: string; - domain?: string; - numberOfEmployees?: number; - officeAddress?: string; -} - -// @public -export interface ComputeUnitsMetadata { - name?: string; - value?: string[]; -} - -// @public -export type CreatedByType = string; - -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - -// @public -export function getContinuationToken(page: unknown): string | undefined; - -// @public -export interface InfaRuntimeResourceFetchMetaData { - createdBy: string; - createdTime: string; - description?: string; - id: string; - name: string; - serverlessConfigProperties: InfaServerlessFetchConfigProperties; - status: string; - statusLocalized: string; - statusMessage: string; - type: RuntimeType; - updatedBy: string; - updatedTime: string; -} - -// @public -export interface InfaServerlessFetchConfigProperties { - advancedCustomProperties?: string; - applicationType?: string; - computeUnits?: string; - executionTimeout?: string; - platform?: string; - region?: string; - resourceGroupName?: string; - serverlessArmResourceId?: string; - subnet?: string; - subscriptionId?: string; - supplementaryFileLocation?: string; - tags?: string; - tenantId?: string; - vnet?: string; -} - -// @public (undocumented) -export class InformaticaDataManagement extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: InformaticaDataManagementOptionalParams); - // (undocumented) - apiVersion: string; - // (undocumented) - operations: Operations; - // (undocumented) - organizations: Organizations; - // (undocumented) - serverlessRuntimes: ServerlessRuntimes; - // (undocumented) - subscriptionId: string; -} - -// @public -export interface InformaticaDataManagementOptionalParams extends coreClient.ServiceClientOptions { - $host?: string; - apiVersion?: string; - endpoint?: string; -} - -// @public -export interface InformaticaOrganizationResource extends TrackedResource { - properties?: OrganizationProperties; -} - -// @public -export interface InformaticaOrganizationResourceListResult { - nextLink?: string; - value: InformaticaOrganizationResource[]; -} - -// @public -export interface InformaticaOrganizationResourceUpdate { - properties?: OrganizationPropertiesCustomUpdate; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface InformaticaProperties { - informaticaRegion?: string; - organizationId?: string; - organizationName?: string; - singleSignOnUrl?: string; -} - -// @public -export interface InformaticaServerlessRuntimeProperties { - advancedCustomProperties?: AdvancedCustomProperties[]; - applicationType?: ApplicationType; - computeUnits?: string; - description?: string; - executionTimeout?: string; - platform?: PlatformType; - readonly provisioningState?: ProvisioningState; - serverlessAccountLocation: string; - serverlessRuntimeConfig?: ServerlessRuntimeConfigProperties; - serverlessRuntimeNetworkProfile?: ServerlessRuntimeNetworkProfile; - serverlessRuntimeTags?: ServerlessRuntimeTag[]; - serverlessRuntimeUserContextProperties?: ServerlessRuntimeUserContextProperties; - supplementaryFileLocation?: string; -} - -// @public -export interface InformaticaServerlessRuntimeResource extends ProxyResource { - properties?: InformaticaServerlessRuntimeProperties; -} - -// @public -export interface InformaticaServerlessRuntimeResourceList { - informaticaRuntimeResources: InfaRuntimeResourceFetchMetaData[]; -} - -// @public -export interface InformaticaServerlessRuntimeResourceListResult { - nextLink?: string; - value: InformaticaServerlessRuntimeResource[]; -} - -// @public -export interface InformaticaServerlessRuntimeResourceUpdate { - properties?: ServerlessRuntimePropertiesCustomUpdate; -} - -// @public -export enum KnownActionType { - Internal = "Internal" -} - -// @public -export enum KnownApplicationType { - CDI = "CDI", - Cdie = "CDIE" -} - -// @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" -} - -// @public -export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" -} - -// @public -export enum KnownPlatformType { - Azure = "AZURE" -} - -// @public -export enum KnownProvisioningState { - Accepted = "Accepted", - Canceled = "Canceled", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - Failed = "Failed", - NotSpecified = "NotSpecified", - Succeeded = "Succeeded", - Updating = "Updating" -} - -// @public -export enum KnownRuntimeType { - Serverless = "SERVERLESS" -} - -// @public -export interface LinkOrganization { - token?: string; -} - -// @public -export interface MarketplaceDetails { - marketplaceSubscriptionId?: string; - offerDetails: OfferDetails; -} - -// @public -export interface MarketplaceDetailsUpdate { - marketplaceSubscriptionId?: string; - offerDetails?: OfferDetailsUpdate; -} - -// @public -export interface NetworkInterfaceConfiguration { - subnetId: string; - vnetId: string; - vnetResourceGuid?: string; -} - -// @public -export interface NetworkInterfaceConfigurationUpdate { - subnetId?: string; - vnetId?: string; - vnetResourceGuid?: string; -} - -// @public -export interface OfferDetails { - offerId: string; - planId: string; - planName: string; - publisherId: string; - termId: string; - termUnit?: string; -} - -// @public -export interface OfferDetailsUpdate { - offerId?: string; - planId?: string; - planName?: string; - publisherId?: string; - termId?: string; - termUnit?: string; -} - -// @public -export interface Operation { - readonly actionType?: ActionType; - display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; -} - -// @public -export interface OperationDisplay { - readonly description?: string; - readonly operation?: string; - readonly provider?: string; - readonly resource?: string; -} - -// @public -export interface OperationListResult { - readonly nextLink?: string; - readonly value?: Operation[]; -} - -// @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListNextResponse = OperationListResult; - -// @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListResponse = OperationListResult; - -// @public -export interface OrganizationProperties { - companyDetails?: CompanyDetails; - informaticaProperties?: InformaticaProperties; - linkOrganization?: LinkOrganization; - marketplaceDetails?: MarketplaceDetails; - readonly provisioningState?: ProvisioningState; - userDetails?: UserDetails; -} - -// @public -export interface OrganizationPropertiesCustomUpdate { - companyDetails?: CompanyDetailsUpdate; - existingResourceId?: string; - informaticaOrganizationProperties?: InformaticaOrganizationResourceUpdate; - marketplaceDetails?: MarketplaceDetailsUpdate; - userDetails?: UserDetailsUpdate; -} - -// @public -export interface Organizations { - beginCreateOrUpdate(resourceGroupName: string, organizationName: string, resource: InformaticaOrganizationResource, options?: OrganizationsCreateOrUpdateOptionalParams): Promise, OrganizationsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, organizationName: string, resource: InformaticaOrganizationResource, options?: OrganizationsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationsDeleteOptionalParams): Promise, OrganizationsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationsDeleteOptionalParams): Promise; - get(resourceGroupName: string, organizationName: string, options?: OrganizationsGetOptionalParams): Promise; - getAllServerlessRuntimes(resourceGroupName: string, organizationName: string, options?: OrganizationsGetAllServerlessRuntimesOptionalParams): Promise; - getServerlessMetadata(resourceGroupName: string, organizationName: string, options?: OrganizationsGetServerlessMetadataOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: OrganizationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: OrganizationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, organizationName: string, properties: InformaticaOrganizationResourceUpdate, options?: OrganizationsUpdateOptionalParams): Promise; -} - -// @public -export interface OrganizationsCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface OrganizationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OrganizationsCreateOrUpdateResponse = InformaticaOrganizationResource; - -// @public -export interface OrganizationsDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface OrganizationsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OrganizationsDeleteResponse = OrganizationsDeleteHeaders; - -// @public -export interface OrganizationsGetAllServerlessRuntimesOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsGetAllServerlessRuntimesResponse = InformaticaServerlessRuntimeResourceList; - -// @public -export interface OrganizationsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsGetResponse = InformaticaOrganizationResource; - -// @public -export interface OrganizationsGetServerlessMetadataOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsGetServerlessMetadataResponse = ServerlessMetadataResponse; - -// @public -export interface OrganizationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsListByResourceGroupNextResponse = InformaticaOrganizationResourceListResult; - -// @public -export interface OrganizationsListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsListByResourceGroupResponse = InformaticaOrganizationResourceListResult; - -// @public -export interface OrganizationsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsListBySubscriptionNextResponse = InformaticaOrganizationResourceListResult; - -// @public -export interface OrganizationsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsListBySubscriptionResponse = InformaticaOrganizationResourceListResult; - -// @public -export interface OrganizationsUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OrganizationsUpdateResponse = InformaticaOrganizationResource; - -// @public -export type Origin = string; - -// @public -export type PlatformType = string; - -// @public -export type ProvisioningState = string; - -// @public -export interface ProxyResource extends Resource { -} - -// @public -export interface RegionsMetadata { - id?: string; - name?: string; -} - -// @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; -} - -// @public -export type RuntimeType = string; - -// @public -export interface ServerlessConfigProperties { - applicationTypes?: ApplicationTypeMetadata[]; - computeUnits?: ComputeUnitsMetadata[]; - executionTimeout?: string; - platform?: PlatformType; - regions?: RegionsMetadata[]; -} - -// @public -export interface ServerlessMetadataResponse { - serverlessConfigProperties?: ServerlessConfigProperties; - serverlessRuntimeConfigProperties?: ServerlessRuntimeConfigProperties; - type?: RuntimeType; -} - -// @public -export interface ServerlessRuntimeConfigProperties { - cdiConfigProps?: CdiConfigProps[]; - cdieConfigProps?: CdiConfigProps[]; -} - -// @public -export interface ServerlessRuntimeConfigPropertiesUpdate { - cdiConfigProps?: CdiConfigProps[]; - cdieConfigProps?: CdiConfigProps[]; -} - -// @public -export interface ServerlessRuntimeDependency { - appContextId: string; - description: string; - documentType: string; - id: string; - lastUpdatedTime: string; - path: string; -} - -// @public -export interface ServerlessRuntimeNetworkProfile { - networkInterfaceConfiguration: NetworkInterfaceConfiguration; -} - -// @public -export interface ServerlessRuntimeNetworkProfileUpdate { - networkInterfaceConfiguration?: NetworkInterfaceConfigurationUpdate; -} - -// @public -export interface ServerlessRuntimePropertiesCustomUpdate { - advancedCustomProperties?: AdvancedCustomProperties[]; - applicationType?: ApplicationType; - computeUnits?: string; - description?: string; - executionTimeout?: string; - platform?: PlatformType; - serverlessAccountLocation?: string; - serverlessRuntimeConfig?: ServerlessRuntimeConfigPropertiesUpdate; - serverlessRuntimeNetworkProfile?: ServerlessRuntimeNetworkProfileUpdate; - serverlessRuntimeTags?: ServerlessRuntimeTag[]; - serverlessRuntimeUserContextProperties?: ServerlessRuntimeUserContextPropertiesUpdate; - supplementaryFileLocation?: string; -} - -// @public -export interface ServerlessRuntimes { - beginCreateOrUpdate(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, resource: InformaticaServerlessRuntimeResource, options?: ServerlessRuntimesCreateOrUpdateOptionalParams): Promise, ServerlessRuntimesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, resource: InformaticaServerlessRuntimeResource, options?: ServerlessRuntimesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesDeleteOptionalParams): Promise, ServerlessRuntimesDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesDeleteOptionalParams): Promise; - checkDependencies(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesCheckDependenciesOptionalParams): Promise; - get(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesGetOptionalParams): Promise; - listByInformaticaOrganizationResource(resourceGroupName: string, organizationName: string, options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams): PagedAsyncIterableIterator; - serverlessResourceById(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesServerlessResourceByIdOptionalParams): Promise; - startFailedServerlessRuntime(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams): Promise; - update(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, properties: InformaticaServerlessRuntimeResourceUpdate, options?: ServerlessRuntimesUpdateOptionalParams): Promise; -} - -// @public -export interface ServerlessRuntimesCheckDependenciesOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerlessRuntimesCheckDependenciesResponse = CheckDependenciesResponse; - -// @public -export interface ServerlessRuntimesCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface ServerlessRuntimesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ServerlessRuntimesCreateOrUpdateResponse = InformaticaServerlessRuntimeResource; - -// @public -export interface ServerlessRuntimesDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface ServerlessRuntimesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ServerlessRuntimesDeleteResponse = ServerlessRuntimesDeleteHeaders; - -// @public -export interface ServerlessRuntimesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerlessRuntimesGetResponse = InformaticaServerlessRuntimeResource; - -// @public -export interface ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse = InformaticaServerlessRuntimeResourceListResult; - -// @public -export interface ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerlessRuntimesListByInformaticaOrganizationResourceResponse = InformaticaServerlessRuntimeResourceListResult; - -// @public -export interface ServerlessRuntimesServerlessResourceByIdOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerlessRuntimesServerlessResourceByIdResponse = InformaticaServerlessRuntimeResource; - -// @public -export interface ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface ServerlessRuntimesUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ServerlessRuntimesUpdateResponse = InformaticaServerlessRuntimeResource; - -// @public -export interface ServerlessRuntimeTag { - name?: string; - value?: string; -} - -// @public -export interface ServerlessRuntimeUserContextProperties { - userContextToken: string; -} - -// @public -export interface ServerlessRuntimeUserContextPropertiesUpdate { - userContextToken?: string; -} - -// @public -export interface SystemData { - createdAt?: Date; - createdBy?: string; - createdByType?: CreatedByType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; -} - -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface UserDetails { - emailAddress?: string; - firstName?: string; - lastName?: string; - phoneNumber?: string; - upn?: string; -} - -// @public -export interface UserDetailsUpdate { - emailAddress?: string; - firstName?: string; - lastName?: string; - phoneNumber?: string; - upn?: string; -} - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/informatica/arm-informaticadatamanagement/sample.env b/sdk/informatica/arm-informaticadatamanagement/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/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-dev/operationsListSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples-dev/operationsListSample.ts deleted file mode 100644 index f05156a8271e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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 (const 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(): Promise { - 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 (const item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await operationsList(); - await 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 f6fe11104331..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsCreateOrUpdateSample.ts +++ /dev/null @@ -1,107 +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 type { InformaticaOrganizationResource } from "@azure/arm-informaticadatamanagement"; -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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: "https://contoso.com/singlesignon", - }, - 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(): Promise { - 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(): Promise { - await organizationsCreateOrUpdate(); - await 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 96ec19715fa4..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsDeleteSample.ts +++ /dev/null @@ -1,51 +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 { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - await organizationsDelete(); - await 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 2bd58ce0d33c..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetAllServerlessRuntimesSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - await organizationsGetAllServerlessRuntimes(); - await 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 4b2314e39bd5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetSample.ts +++ /dev/null @@ -1,51 +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 { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - await organizationsGet(); - await 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 6dcd31eb9b4f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsGetServerlessMetadataSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - await organizationsGetServerlessMetadata(); - await 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 29310cb1860d..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListByResourceGroupSample.ts +++ /dev/null @@ -1,55 +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 { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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 (const 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(): Promise { - 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 (const item of client.organizations.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await organizationsListByResourceGroup(); - await 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 bdd33d0c4251..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsListBySubscriptionSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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 (const 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(): Promise { - 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 (const item of client.organizations.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await organizationsListBySubscription(); - await 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 90ecf14cf02c..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/organizationsUpdateSample.ts +++ /dev/null @@ -1,88 +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 type { InformaticaOrganizationResourceUpdate } from "@azure/arm-informaticadatamanagement"; -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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: - "/subscriptions/subid/resourceGroups/rg1/providers/Informatica.DataManagement/organizations/org1/serverlessRuntimes/serverlessRuntimeName", - 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(): Promise { - 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(): Promise { - await organizationsUpdate(); - await 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 fbb14dc5a702..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCheckDependenciesSample.ts +++ /dev/null @@ -1,61 +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 { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - await serverlessRuntimesCheckDependencies(); - await 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 4164be43c54e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesCreateOrUpdateSample.ts +++ /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. - */ -import type { InformaticaServerlessRuntimeResource } from "@azure/arm-informaticadatamanagement"; -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1", - vnetId: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1", - 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(): Promise { - 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(): Promise { - await serverlessRuntimesCreateOrUpdate(); - await 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 05b3a51aab12..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesDeleteSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - await 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 bc01c99230a2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesGetSample.ts +++ /dev/null @@ -1,61 +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 { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - await serverlessRuntimesGet(); - await 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 2fec42c586aa..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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 (const item of client.serverlessRuntimes.listByInformaticaOrganizationResource( - resourceGroupName, - organizationName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main(): Promise { - await 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 3da86e701050..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesServerlessResourceByIdSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - await 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 a445247b1f9e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesStartFailedServerlessRuntimeSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - await 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 c4b84fa18fc2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples-dev/serverlessRuntimesUpdateSample.ts +++ /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. - */ -import type { InformaticaServerlessRuntimeResourceUpdate } from "@azure/arm-informaticadatamanagement"; -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1", - vnetId: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1", - 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(): Promise { - 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(): Promise { - await serverlessRuntimesUpdate(); - await serverlessRuntimesUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/README.md b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/README.md deleted file mode 100644 index ba5c70cbe890..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/README.md +++ /dev/null @@ -1,82 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [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 dev-tool run vendored 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/javascript/operationsListSample.js -[organizationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsCreateOrUpdateSample.js -[organizationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsDeleteSample.js -[organizationsgetallserverlessruntimessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsGetAllServerlessRuntimesSample.js -[organizationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsGetSample.js -[organizationsgetserverlessmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsGetServerlessMetadataSample.js -[organizationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsListByResourceGroupSample.js -[organizationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsListBySubscriptionSample.js -[organizationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsUpdateSample.js -[serverlessruntimescheckdependenciessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesCheckDependenciesSample.js -[serverlessruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesCreateOrUpdateSample.js -[serverlessruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesDeleteSample.js -[serverlessruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesGetSample.js -[serverlessruntimeslistbyinformaticaorganizationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js -[serverlessruntimesserverlessresourcebyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesServerlessResourceByIdSample.js -[serverlessruntimesstartfailedserverlessruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js -[serverlessruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesUpdateSample.js -[apiref]: https://learn.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/javascript/operationsListSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index 8e1f54eb80b8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsCreateOrUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsCreateOrUpdateSample.js deleted file mode 100644 index 8e73f9c35c6b..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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: "https://contoso.com/singlesignon", - }, - 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/javascript/organizationsDeleteSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsDeleteSample.js deleted file mode 100644 index 012d863fdb83..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsGetAllServerlessRuntimesSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsGetAllServerlessRuntimesSample.js deleted file mode 100644 index c569f55bf6f2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsGetSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsGetSample.js deleted file mode 100644 index ba9fd5050a2e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsGetServerlessMetadataSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsGetServerlessMetadataSample.js deleted file mode 100644 index 146241655a33..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsListByResourceGroupSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsListByResourceGroupSample.js deleted file mode 100644 index 28dc1cefdc6c..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsListBySubscriptionSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsListBySubscriptionSample.js deleted file mode 100644 index d39caddc216f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/organizationsUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsUpdateSample.js deleted file mode 100644 index 29b846558972..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/organizationsUpdateSample.js +++ /dev/null @@ -1,90 +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: - "/subscriptions/subid/resourceGroups/rg1/providers/Informatica.DataManagement/organizations/org1/serverlessRuntimes/serverlessRuntimeName", - 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/javascript/package.json b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/package.json deleted file mode 100644 index f65065536c8b..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-informaticadatamanagement-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "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": "latest", - "dotenv": "latest", - "@azure/identity": "^4.0.1" - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/sample.env b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesCheckDependenciesSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesCheckDependenciesSample.js deleted file mode 100644 index 861f81742a06..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesCreateOrUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesCreateOrUpdateSample.js deleted file mode 100644 index 7eb20ed1bcea..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesCreateOrUpdateSample.js +++ /dev/null @@ -1,125 +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: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1", - vnetId: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1", - 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/javascript/serverlessRuntimesDeleteSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesDeleteSample.js deleted file mode 100644 index 7160c2fdf0dc..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesGetSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesGetSample.js deleted file mode 100644 index 9f568bf20907..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js deleted file mode 100644 index fb33cf28d5df..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesServerlessResourceByIdSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesServerlessResourceByIdSample.js deleted file mode 100644 index ed66c32d94a7..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js deleted file mode 100644 index 82793f841856..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/javascript/serverlessRuntimesUpdateSample.js b/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesUpdateSample.js deleted file mode 100644 index 84eb57a38f69..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/javascript/serverlessRuntimesUpdateSample.js +++ /dev/null @@ -1,126 +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: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1", - vnetId: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1", - 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/typescript/README.md b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/README.md deleted file mode 100644 index 04fb38533dc1..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/README.md +++ /dev/null @@ -1,95 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [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 dev-tool run vendored 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/typescript/src/operationsListSample.ts -[organizationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsCreateOrUpdateSample.ts -[organizationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsDeleteSample.ts -[organizationsgetallserverlessruntimessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetAllServerlessRuntimesSample.ts -[organizationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetSample.ts -[organizationsgetserverlessmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetServerlessMetadataSample.ts -[organizationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListByResourceGroupSample.ts -[organizationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListBySubscriptionSample.ts -[organizationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsUpdateSample.ts -[serverlessruntimescheckdependenciessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCheckDependenciesSample.ts -[serverlessruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts -[serverlessruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesDeleteSample.ts -[serverlessruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesGetSample.ts -[serverlessruntimeslistbyinformaticaorganizationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts -[serverlessruntimesserverlessresourcebyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts -[serverlessruntimesstartfailedserverlessruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts -[serverlessruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesUpdateSample.ts -[apiref]: https://learn.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/typescript/package.json b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/package.json deleted file mode 100644 index 41d61c812894..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-informaticadatamanagement-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "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": "latest", - "dotenv": "latest", - "@azure/identity": "^4.0.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.7.2", - "rimraf": "latest" - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/sample.env b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/typescript/src/operationsListSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index c6a67151a1c3..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/operationsListSample.ts +++ /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. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - operationsList(); - operationsListMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsCreateOrUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsCreateOrUpdateSample.ts deleted file mode 100644 index dbb50aa976b1..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsCreateOrUpdateSample.ts +++ /dev/null @@ -1,116 +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 "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(): Promise { - 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: "https://contoso.com/singlesignon", - }, - 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(): Promise { - 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(): Promise { - organizationsCreateOrUpdate(); - organizationsCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsDeleteSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsDeleteSample.ts deleted file mode 100644 index 395458f22e78..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsDeleteSample.ts +++ /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. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - organizationsDelete(); - organizationsDeleteMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetAllServerlessRuntimesSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetAllServerlessRuntimesSample.ts deleted file mode 100644 index 97e23bfc96de..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetAllServerlessRuntimesSample.ts +++ /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. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - organizationsGetAllServerlessRuntimes(); - organizationsGetAllServerlessRuntimesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetSample.ts deleted file mode 100644 index 242270f2c623..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetSample.ts +++ /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. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - organizationsGet(); - organizationsGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetServerlessMetadataSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetServerlessMetadataSample.ts deleted file mode 100644 index 0e022f7522fa..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsGetServerlessMetadataSample.ts +++ /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. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - organizationsGetServerlessMetadata(); - organizationsGetServerlessMetadataMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListByResourceGroupSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListByResourceGroupSample.ts deleted file mode 100644 index 44605ef52183..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListByResourceGroupSample.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 "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(): Promise { - 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(): Promise { - 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(): Promise { - organizationsListByResourceGroup(); - organizationsListByResourceGroupMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListBySubscriptionSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListBySubscriptionSample.ts deleted file mode 100644 index 04df25201cd2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsListBySubscriptionSample.ts +++ /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. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - 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(): Promise { - organizationsListBySubscription(); - organizationsListBySubscriptionMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsUpdateSample.ts deleted file mode 100644 index c9588a321745..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/organizationsUpdateSample.ts +++ /dev/null @@ -1,108 +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 "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(): Promise { - 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: - "/subscriptions/subid/resourceGroups/rg1/providers/Informatica.DataManagement/organizations/org1/serverlessRuntimes/serverlessRuntimeName", - 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(): Promise { - 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(): Promise { - organizationsUpdate(); - organizationsUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCheckDependenciesSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCheckDependenciesSample.ts deleted file mode 100644 index 474cafafa01f..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCheckDependenciesSample.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 "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(): Promise { - 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(): Promise { - 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(): Promise { - serverlessRuntimesCheckDependencies(); - serverlessRuntimesCheckDependenciesMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts deleted file mode 100644 index 74314f8f9f5e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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 "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(): Promise { - 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: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1", - vnetId: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1", - 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(): Promise { - 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(): Promise { - serverlessRuntimesCreateOrUpdate(); - serverlessRuntimesCreateOrUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesDeleteSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesDeleteSample.ts deleted file mode 100644 index 90ab7df75582..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - serverlessRuntimesDelete(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesGetSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesGetSample.ts deleted file mode 100644 index 32d59325eba6..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesGetSample.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 "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(): Promise { - 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(): Promise { - 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(): Promise { - serverlessRuntimesGet(); - serverlessRuntimesGetMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts deleted file mode 100644 index 8f3c36f59aa2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - serverlessRuntimesListByInformaticaOrganizationResource(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts deleted file mode 100644 index 372aba7c5416..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - serverlessRuntimesServerlessResourceById(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts deleted file mode 100644 index c6b2a3845d70..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement"; -import { DefaultAzureCredential } from "@azure/identity"; -import "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(): Promise { - 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(): Promise { - serverlessRuntimesStartFailedServerlessRuntime(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesUpdateSample.ts b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/src/serverlessRuntimesUpdateSample.ts deleted file mode 100644 index d43933a0ebf0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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 "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(): Promise { - 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: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/subnet1", - vnetId: - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1", - 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(): Promise { - 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(): Promise { - serverlessRuntimesUpdate(); - serverlessRuntimesUpdateMin(); -} - -main().catch(console.error); diff --git a/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/tsconfig.json b/sdk/informatica/arm-informaticadatamanagement/samples/v1/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/samples/v1/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/index.ts b/sdk/informatica/arm-informaticadatamanagement/src/index.ts deleted file mode 100644 index 2d645d3fe4b7..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -/// -export { getContinuationToken } from "./pagingHelper.js"; -export * from "./models/index.js"; -export { InformaticaDataManagement } from "./informaticaDataManagement.js"; -export * from "./operationsInterfaces/index.js"; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts b/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts deleted file mode 100644 index 88c2ce9bf68e..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/informaticaDataManagement.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; -import * as coreAuth from "@azure/core-auth"; -import { - OperationsImpl, - OrganizationsImpl, - ServerlessRuntimesImpl, -} from "./operations/index.js"; -import { - Operations, - Organizations, - ServerlessRuntimes, -} from "./operationsInterfaces/index.js"; -import { InformaticaDataManagementOptionalParams } from "./models/index.js"; - -export class InformaticaDataManagement extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the InformaticaDataManagement class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: InformaticaDataManagementOptionalParams, - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: InformaticaDataManagementOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials, - }; - - const packageDetails = `azsdk-js-arm-informaticadatamanagement/1.0.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix, - }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", - }; - super(optionsWithDefaults); - - let bearerTokenAuthenticationPolicyFound: boolean = false; - if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = - options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( - (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, - ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName, - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, - }, - }), - ); - } - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-05-08"; - this.operations = new OperationsImpl(this); - this.organizations = new OrganizationsImpl(this); - this.serverlessRuntimes = new ServerlessRuntimesImpl(this); - this.addCustomApiVersionPolicy(options.apiVersion); - } - - /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ - private addCustomApiVersionPolicy(apiVersion?: string) { - if (!apiVersion) { - return; - } - const apiVersionPolicy = { - name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest, - ): Promise { - const param = request.url.split("?"); - if (param.length > 1) { - const newParams = param[1].split("&").map((item) => { - if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; - } else { - return item; - } - }); - request.url = param[0] + "?" + newParams.join("&"); - } - return next(request); - }, - }; - this.pipeline.addPolicy(apiVersionPolicy); - } - - operations: Operations; - organizations: Organizations; - serverlessRuntimes: ServerlessRuntimes; -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/lroImpl.ts b/sdk/informatica/arm-informaticadatamanagement/src/lroImpl.ts deleted file mode 100644 index d8bc98987053..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/lroImpl.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ -import { AbortSignalLike } from "@azure/abort-controller"; -import { LongRunningOperation, LroResponse } from "@azure/core-lro"; - -export function createLroSpec(inputs: { - sendOperationFn: (args: any, spec: any) => Promise>; - args: Record; - spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record; -}): LongRunningOperation { - const { args, spec, sendOperationFn } = inputs; - return { - requestMethod: spec.httpMethod, - requestPath: spec.path!, - sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { - const { requestBody, ...restSpec } = spec; - return sendOperationFn(args, { - ...restSpec, - httpMethod: "GET", - path, - abortSignal: options?.abortSignal, - }); - }, - }; -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts b/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts deleted file mode 100644 index 8c92e2e0375c..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/models/index.ts +++ /dev/null @@ -1,1041 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: ActionType; -} - -/** Localized display information for this particular operation. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - -/** The response of a InformaticaOrganizationResource list operation. */ -export interface InformaticaOrganizationResourceListResult { - /** The InformaticaOrganizationResource items on this page */ - value: InformaticaOrganizationResource[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Properties specific to the Informatica DataManagement Organization resource. */ -export interface OrganizationProperties { - /** - * Provisioning State of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** Informatica Organization properties. */ - informaticaProperties?: InformaticaProperties; - /** Marketplace details. */ - marketplaceDetails?: MarketplaceDetails; - /** User details */ - userDetails?: UserDetails; - /** Company details. */ - companyDetails?: CompanyDetails; - /** Link Organization */ - linkOrganization?: LinkOrganization; -} - -/** Properties of the Informatica organization. */ -export interface InformaticaProperties { - /** Organization id */ - organizationId?: string; - /** Organization name */ - organizationName?: string; - /** Informatica organization region */ - informaticaRegion?: string; - /** Single sing on URL for informatica organization */ - singleSignOnUrl?: string; -} - -/** Marketplace details. */ -export interface MarketplaceDetails { - /** Marketplace Subscription Id */ - marketplaceSubscriptionId?: string; - /** Marketplace offer details. */ - offerDetails: OfferDetails; -} - -/** Details of the product offering. */ -export interface OfferDetails { - /** Id of the product publisher. */ - publisherId: string; - /** Id of the product offering. */ - offerId: string; - /** Id of the product offer plan. */ - planId: string; - /** Name of the product offer plan. */ - planName: string; - /** Offer plan term unit. */ - termUnit?: string; - /** Offer plan term id. */ - termId: string; -} - -/** User Info of Informatica Organization resource. */ -export interface UserDetails { - /** User first name. */ - firstName?: string; - /** User last name. */ - lastName?: string; - /** User email address. */ - emailAddress?: string; - /** UPN of user */ - upn?: string; - /** Phone number of the user used by for contacting them if needed */ - phoneNumber?: string; -} - -/** Company Details. */ -export interface CompanyDetails { - /** company Name */ - companyName?: string; - /** Office Address */ - officeAddress?: string; - /** Country name */ - country?: string; - /** Domain name */ - domain?: string; - /** Business phone number */ - business?: string; - /** Number Of Employees */ - numberOfEmployees?: number; -} - -/** Link Organization */ -export interface LinkOrganization { - /** Link organization token */ - token?: string; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The template for adding optional properties. */ -export interface InformaticaOrganizationResourceUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Patchable PropertieInformaticaOrganizationPropertiesUpdates of the Organization observability resource */ - properties?: OrganizationPropertiesCustomUpdate; -} - -/** Patchable Properties of the Informatica Organization resource */ -export interface OrganizationPropertiesCustomUpdate { - /** Informatica Organization properties */ - informaticaOrganizationProperties?: InformaticaOrganizationResourceUpdate; - /** Marketplace details */ - marketplaceDetails?: MarketplaceDetailsUpdate; - /** User details */ - userDetails?: UserDetailsUpdate; - /** Company Details */ - companyDetails?: CompanyDetailsUpdate; - /** Existing Resource Id */ - existingResourceId?: string; -} - -/** Marketplace details */ -export interface MarketplaceDetailsUpdate { - /** Marketplace Subscription Id */ - marketplaceSubscriptionId?: string; - /** Marketplace offer details. */ - offerDetails?: OfferDetailsUpdate; -} - -/** Details of the product offering */ -export interface OfferDetailsUpdate { - /** Id of the product publisher. */ - publisherId?: string; - /** Id of the product offering. */ - offerId?: string; - /** Id of the product offer plan. */ - planId?: string; - /** Name of the product offer plan. */ - planName?: string; - /** Offer plan term unit. */ - termUnit?: string; - /** Offer plan term id. */ - termId?: string; -} - -/** User Info of Informatica Organization resource */ -export interface UserDetailsUpdate { - /** User first name. */ - firstName?: string; - /** User last name. */ - lastName?: string; - /** User email address. */ - emailAddress?: string; - /** UPN of user */ - upn?: string; - /** Phone number of the user used by for contacting them if needed */ - phoneNumber?: string; -} - -/** Company details of Informatica Organization resource */ -export interface CompanyDetailsUpdate { - /** company Name */ - companyName?: string; - /** Office Address */ - officeAddress?: string; - /** Country name */ - country?: string; - /** Domain name */ - domain?: string; - /** Business phone number */ - business?: string; - /** Number Of Employees */ - numberOfEmployees?: number; -} - -/** A list of serverless runtime resources as fetched using the informatica APIs */ -export interface InformaticaServerlessRuntimeResourceList { - /** List of runtime resources for the fetch all API */ - informaticaRuntimeResources: InfaRuntimeResourceFetchMetaData[]; -} - -/** Informatica runtime resource metadata as received via the informatica fetch all runtime environments API */ -export interface InfaRuntimeResourceFetchMetaData { - /** Environment name */ - name: string; - /** Created time */ - createdTime: string; - /** Updated Time */ - updatedTime: string; - /** Created by */ - createdBy: string; - /** Last Updated by */ - updatedBy: string; - /** Informatica serverless runtime id */ - id: string; - /** Environment Type */ - type: RuntimeType; - /** Status of the environment */ - status: string; - /** Display message for the given status */ - statusLocalized: string; - /** status message */ - statusMessage: string; - /** Serverless Config Properties */ - serverlessConfigProperties: InfaServerlessFetchConfigProperties; - /** Description of the runtime resource */ - description?: string; -} - -/** InfaServerlessFetchConfigProperties for the fetch all serverless API as received from informatica API response */ -export interface InfaServerlessFetchConfigProperties { - /** subnet name */ - subnet?: string; - /** applicationType name */ - applicationType?: string; - /** Resource group name */ - resourceGroupName?: string; - /** Advanced custom properties */ - advancedCustomProperties?: string; - /** Supplementary File location */ - supplementaryFileLocation?: string; - /** Serverless Account Platform */ - platform?: string; - /** Tags for the resource */ - tags?: string; - /** virtual network */ - vnet?: string; - /** Execution timeout */ - executionTimeout?: string; - /** Compute Units */ - computeUnits?: string; - /** Tenant ID */ - tenantId?: string; - /** subscription ID */ - subscriptionId?: string; - /** region name for the runtime environment */ - region?: string; - /** Serverless Arm Resource ID */ - serverlessArmResourceId?: string; -} - -/** Serverless Runtime environment Metadata response. */ -export interface ServerlessMetadataResponse { - /** type of the runtime environment. */ - type?: RuntimeType; - /** serverless config properties */ - serverlessConfigProperties?: ServerlessConfigProperties; - /** serverless runtime config properties */ - serverlessRuntimeConfigProperties?: ServerlessRuntimeConfigProperties; -} - -/** Metadata Serverless Config Properties */ -export interface ServerlessConfigProperties { - /** Platform types */ - platform?: PlatformType; - /** List of application types supported by informatica */ - applicationTypes?: ApplicationTypeMetadata[]; - /** The list of compute units with possible array of values */ - computeUnits?: ComputeUnitsMetadata[]; - /** Serverless Runtime execution timeout */ - executionTimeout?: string; - /** List of supported serverless informatica regions */ - regions?: RegionsMetadata[]; -} - -/** Informatica Serverless Runtime Application type Metadata */ -export interface ApplicationTypeMetadata { - /** Application type name */ - name?: string; - /** Application type value */ - value?: string; -} - -/** Informatica Serverless Runtime Application type Metadata */ -export interface ComputeUnitsMetadata { - /** ComputeUnit name */ - name?: string; - /** ComputeUnit value */ - value?: string[]; -} - -/** Informatica Serverless Runtime Regions Metadata */ -export interface RegionsMetadata { - /** Region Id */ - id?: string; - /** Region name */ - name?: string; -} - -/** Serverless Runtime config properties. */ -export interface ServerlessRuntimeConfigProperties { - /** The List of Informatica Serverless Runtime CDI Config Properties. */ - cdiConfigProps?: CdiConfigProps[]; - /** The List of Informatica Serverless Runtime CDIE Config Properties. */ - cdieConfigProps?: CdiConfigProps[]; -} - -/** Informatica CDI Configuration Properties. */ -export interface CdiConfigProps { - /** EngineName of the application config. */ - engineName: string; - /** EngineVersion of the application config. */ - engineVersion: string; - /** ApplicationConfigs of the CDI or CDIE. */ - applicationConfigs: ApplicationConfigs[]; -} - -/** Application configs */ -export interface ApplicationConfigs { - /** Type of the application config. */ - type: string; - /** Name of the application config. */ - name: string; - /** Value of the application config. */ - value: string; - /** Platform type of the application config. */ - platform: string; - /** Customized value of the application config. */ - customized: string; - /** Default value of the application config. */ - defaultValue: string; -} - -/** The response of a InformaticaServerlessRuntimeResource list operation. */ -export interface InformaticaServerlessRuntimeResourceListResult { - /** The InformaticaServerlessRuntimeResource items on this page */ - value: InformaticaServerlessRuntimeResource[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Serverless Runtime properties. */ -export interface InformaticaServerlessRuntimeProperties { - /** - * Provisioning State of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** description of the serverless runtime. */ - description?: string; - /** Platform type of the Serverless Runtime. */ - platform?: PlatformType; - /** Application type of the Serverless Runtime environment. */ - applicationType?: ApplicationType; - /** Compute units of the serverless runtime. */ - computeUnits?: string; - /** Serverless Execution timeout */ - executionTimeout?: string; - /** Serverless account creation location */ - serverlessAccountLocation: string; - /** Informatica Serverless Network profile properties. */ - serverlessRuntimeNetworkProfile?: ServerlessRuntimeNetworkProfile; - /** String KV pairs indicating Advanced custom properties. */ - advancedCustomProperties?: AdvancedCustomProperties[]; - /** Supplementary file location. */ - supplementaryFileLocation?: string; - /** Serverless config properties */ - serverlessRuntimeConfig?: ServerlessRuntimeConfigProperties; - /** Serverless Runtime Tags */ - serverlessRuntimeTags?: ServerlessRuntimeTag[]; - /** Serverless runtime user context properties */ - serverlessRuntimeUserContextProperties?: ServerlessRuntimeUserContextProperties; -} - -/** Informatica Serverless Runtime Network Profile. */ -export interface ServerlessRuntimeNetworkProfile { - /** Network Interface Configuration Profile */ - networkInterfaceConfiguration: NetworkInterfaceConfiguration; -} - -/** Informatica Serverless Runtime Network Interface configurations. */ -export interface NetworkInterfaceConfiguration { - /** Virtual network resource id */ - vnetId: string; - /** Virtual network subnet resource id */ - subnetId: string; - /** Virtual network resource guid */ - vnetResourceGuid?: string; -} - -/** Informatica Serverless advanced custom properties */ -export interface AdvancedCustomProperties { - /** advanced custom properties key */ - key?: string; - /** advanced custom properties value */ - value?: string; -} - -/** Serverless Runtime Tags */ -export interface ServerlessRuntimeTag { - /** The name (also known as the key) of the tag. */ - name?: string; - /** The value of the tag. */ - value?: string; -} - -/** Informatica Serverless Runtime User context properties */ -export interface ServerlessRuntimeUserContextProperties { - /** User context token for OBO flow. */ - userContextToken: string; -} - -/** The template for adding optional properties. */ -export interface InformaticaServerlessRuntimeResourceUpdate { - /** Patchable PropertieInformaticaOrganizationPropertiesUpdates of the Organization observability resource */ - properties?: ServerlessRuntimePropertiesCustomUpdate; -} - -/** Patchable Properties of the Informatica Serverless Runtime resource */ -export interface ServerlessRuntimePropertiesCustomUpdate { - /** description of the serverless runtime. */ - description?: string; - /** Platform type of the Serverless Runtime. */ - platform?: PlatformType; - /** Application type of the Serverless Runtime environment. */ - applicationType?: ApplicationType; - /** Compute units of the serverless runtime. */ - computeUnits?: string; - /** Serverless Execution timeout */ - executionTimeout?: string; - /** Serverless account creation location */ - serverlessAccountLocation?: string; - /** Informatica Serverless Network profile properties. */ - serverlessRuntimeNetworkProfile?: ServerlessRuntimeNetworkProfileUpdate; - /** String KV pairs indicating Advanced custom properties. */ - advancedCustomProperties?: AdvancedCustomProperties[]; - /** Supplementary file location. */ - supplementaryFileLocation?: string; - /** Serverless config properties */ - serverlessRuntimeConfig?: ServerlessRuntimeConfigPropertiesUpdate; - /** Serverless Runtime Tags */ - serverlessRuntimeTags?: ServerlessRuntimeTag[]; - /** Serverless runtime user context properties */ - serverlessRuntimeUserContextProperties?: ServerlessRuntimeUserContextPropertiesUpdate; -} - -/** Informatica Serverless Network profile properties update. */ -export interface ServerlessRuntimeNetworkProfileUpdate { - /** Network Interface Configuration Profile Update */ - networkInterfaceConfiguration?: NetworkInterfaceConfigurationUpdate; -} - -/** The template for adding optional properties. */ -export interface NetworkInterfaceConfigurationUpdate { - /** Virtual network resource id */ - vnetId?: string; - /** Virtual network subnet resource id */ - subnetId?: string; - /** Virtual network resource guid */ - vnetResourceGuid?: string; -} - -/** The template for adding optional properties. */ -export interface ServerlessRuntimeConfigPropertiesUpdate { - /** The List of Informatica Serverless Runtime CDI Config Properties. */ - cdiConfigProps?: CdiConfigProps[]; - /** The List of Informatica Serverless Runtime CDIE Config Properties. */ - cdieConfigProps?: CdiConfigProps[]; -} - -/** The template for adding optional properties. */ -export interface ServerlessRuntimeUserContextPropertiesUpdate { - /** User context token for OBO flow. */ - userContextToken?: string; -} - -/** Model for the check dependencies API for an informatica serverless runtime resource */ -export interface CheckDependenciesResponse { - /** Count of dependencies */ - count: number; - /** id of resource */ - id: string; - /** List of dependencies */ - references: ServerlessRuntimeDependency[]; -} - -/** Dependency reference for a serverless runtime resource */ -export interface ServerlessRuntimeDependency { - /** Dependency ID */ - id: string; - /** Application context ID */ - appContextId: string; - /** Dependency path */ - path: string; - /** document type */ - documentType: string; - /** description of Dependency */ - description: string; - /** Last Update Time */ - lastUpdatedTime: string; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** An Organization Resource by Informatica. */ -export interface InformaticaOrganizationResource extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: OrganizationProperties; -} - -/** A Serverless Runtime environment resource by Informatica. */ -export interface InformaticaServerlessRuntimeResource extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: InformaticaServerlessRuntimeProperties; -} - -/** Defines headers for Organizations_createOrUpdate operation. */ -export interface OrganizationsCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for Organizations_delete operation. */ -export interface OrganizationsDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for ServerlessRuntimes_createOrUpdate operation. */ -export interface ServerlessRuntimesCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for ServerlessRuntimes_delete operation. */ -export interface ServerlessRuntimesDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** User */ - User = "user", - /** System */ - System = "system", - /** UserSystem */ - UserSystem = "user,system", -} - -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** - */ -export type Origin = string; - -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** Internal */ - Internal = "Internal", -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** - */ -export type ActionType = string; - -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Organization resource creation request accepted */ - Accepted = "Accepted", - /** Organization resource creation started */ - Creating = "Creating", - /** Organization resource is being updated */ - Updating = "Updating", - /** Organization resource deletion started */ - Deleting = "Deleting", - /** Organization resource creation successful */ - Succeeded = "Succeeded", - /** Organization resource creation failed */ - Failed = "Failed", - /** Organization resource creation canceled */ - Canceled = "Canceled", - /** Organization resource is deleted */ - Deleted = "Deleted", - /** Organization resource state is unknown */ - NotSpecified = "NotSpecified", -} - -/** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Accepted**: Organization resource creation request accepted \ - * **Creating**: Organization resource creation started \ - * **Updating**: Organization resource is being updated \ - * **Deleting**: Organization resource deletion started \ - * **Succeeded**: Organization resource creation successful \ - * **Failed**: Organization resource creation failed \ - * **Canceled**: Organization resource creation canceled \ - * **Deleted**: Organization resource is deleted \ - * **NotSpecified**: Organization resource state is unknown - */ -export type ProvisioningState = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link RuntimeType} that the service accepts. */ -export enum KnownRuntimeType { - /** Serverless Runtime type */ - Serverless = "SERVERLESS", -} - -/** - * Defines values for RuntimeType. \ - * {@link KnownRuntimeType} can be used interchangeably with RuntimeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SERVERLESS**: Serverless Runtime type - */ -export type RuntimeType = string; - -/** Known values of {@link PlatformType} that the service accepts. */ -export enum KnownPlatformType { - /** Azure platform type */ - Azure = "AZURE", -} - -/** - * Defines values for PlatformType. \ - * {@link KnownPlatformType} can be used interchangeably with PlatformType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AZURE**: Azure platform type - */ -export type PlatformType = string; - -/** Known values of {@link ApplicationType} that the service accepts. */ -export enum KnownApplicationType { - /** Data Integration */ - CDI = "CDI", - /** Advanced Data Integration */ - Cdie = "CDIE", -} - -/** - * Defines values for ApplicationType. \ - * {@link KnownApplicationType} can be used interchangeably with ApplicationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CDI**: Data Integration \ - * **CDIE**: Advanced Data Integration - */ -export type ApplicationType = string; - -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface OrganizationsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type OrganizationsListBySubscriptionResponse = - InformaticaOrganizationResourceListResult; - -/** Optional parameters. */ -export interface OrganizationsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type OrganizationsListByResourceGroupResponse = - InformaticaOrganizationResourceListResult; - -/** Optional parameters. */ -export interface OrganizationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type OrganizationsGetResponse = InformaticaOrganizationResource; - -/** Optional parameters. */ -export interface OrganizationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type OrganizationsCreateOrUpdateResponse = - InformaticaOrganizationResource; - -/** Optional parameters. */ -export interface OrganizationsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type OrganizationsUpdateResponse = InformaticaOrganizationResource; - -/** Optional parameters. */ -export interface OrganizationsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type OrganizationsDeleteResponse = OrganizationsDeleteHeaders; - -/** Optional parameters. */ -export interface OrganizationsGetAllServerlessRuntimesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getAllServerlessRuntimes operation. */ -export type OrganizationsGetAllServerlessRuntimesResponse = - InformaticaServerlessRuntimeResourceList; - -/** Optional parameters. */ -export interface OrganizationsGetServerlessMetadataOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getServerlessMetadata operation. */ -export type OrganizationsGetServerlessMetadataResponse = - ServerlessMetadataResponse; - -/** Optional parameters. */ -export interface OrganizationsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type OrganizationsListBySubscriptionNextResponse = - InformaticaOrganizationResourceListResult; - -/** Optional parameters. */ -export interface OrganizationsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type OrganizationsListByResourceGroupNextResponse = - InformaticaOrganizationResourceListResult; - -/** Optional parameters. */ -export interface ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInformaticaOrganizationResource operation. */ -export type ServerlessRuntimesListByInformaticaOrganizationResourceResponse = - InformaticaServerlessRuntimeResourceListResult; - -/** Optional parameters. */ -export interface ServerlessRuntimesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ServerlessRuntimesGetResponse = - InformaticaServerlessRuntimeResource; - -/** Optional parameters. */ -export interface ServerlessRuntimesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ServerlessRuntimesCreateOrUpdateResponse = - InformaticaServerlessRuntimeResource; - -/** Optional parameters. */ -export interface ServerlessRuntimesUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ServerlessRuntimesUpdateResponse = - InformaticaServerlessRuntimeResource; - -/** Optional parameters. */ -export interface ServerlessRuntimesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type ServerlessRuntimesDeleteResponse = ServerlessRuntimesDeleteHeaders; - -/** Optional parameters. */ -export interface ServerlessRuntimesCheckDependenciesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkDependencies operation. */ -export type ServerlessRuntimesCheckDependenciesResponse = - CheckDependenciesResponse; - -/** Optional parameters. */ -export interface ServerlessRuntimesServerlessResourceByIdOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the serverlessResourceById operation. */ -export type ServerlessRuntimesServerlessResourceByIdResponse = - InformaticaServerlessRuntimeResource; - -/** Optional parameters. */ -export interface ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByInformaticaOrganizationResourceNext operation. */ -export type ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse = - InformaticaServerlessRuntimeResourceListResult; - -/** Optional parameters. */ -export interface InformaticaDataManagementOptionalParams - extends coreClient.ServiceClientOptions { - /** server parameter */ - $host?: string; - /** Api Version */ - apiVersion?: string; - /** Overrides client endpoint. */ - endpoint?: string; -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts b/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts deleted file mode 100644 index 5ba1f7caa160..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/models/mappers.ts +++ /dev/null @@ -1,2020 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean", - }, - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay", - }, - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String", - }, - }, - actionType: { - serializedName: "actionType", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String", - }, - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String", - }, - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String", - }, - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - }, - }, - }, - }, - }, - }, -}; - -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - }, - }, -}; - -export const InformaticaOrganizationResourceListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaOrganizationResourceListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformaticaOrganizationResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const OrganizationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrganizationProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - informaticaProperties: { - serializedName: "informaticaProperties", - type: { - name: "Composite", - className: "InformaticaProperties", - }, - }, - marketplaceDetails: { - serializedName: "marketplaceDetails", - type: { - name: "Composite", - className: "MarketplaceDetails", - }, - }, - userDetails: { - serializedName: "userDetails", - type: { - name: "Composite", - className: "UserDetails", - }, - }, - companyDetails: { - serializedName: "companyDetails", - type: { - name: "Composite", - className: "CompanyDetails", - }, - }, - linkOrganization: { - serializedName: "linkOrganization", - type: { - name: "Composite", - className: "LinkOrganization", - }, - }, - }, - }, -}; - -export const InformaticaProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InformaticaProperties", - modelProperties: { - organizationId: { - serializedName: "organizationId", - type: { - name: "String", - }, - }, - organizationName: { - serializedName: "organizationName", - type: { - name: "String", - }, - }, - informaticaRegion: { - serializedName: "informaticaRegion", - type: { - name: "String", - }, - }, - singleSignOnUrl: { - serializedName: "singleSignOnUrl", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const MarketplaceDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MarketplaceDetails", - modelProperties: { - marketplaceSubscriptionId: { - serializedName: "marketplaceSubscriptionId", - type: { - name: "String", - }, - }, - offerDetails: { - serializedName: "offerDetails", - type: { - name: "Composite", - className: "OfferDetails", - }, - }, - }, - }, -}; - -export const OfferDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OfferDetails", - modelProperties: { - publisherId: { - constraints: { - MaxLength: 250, - }, - serializedName: "publisherId", - required: true, - type: { - name: "String", - }, - }, - offerId: { - constraints: { - MaxLength: 250, - }, - serializedName: "offerId", - required: true, - type: { - name: "String", - }, - }, - planId: { - constraints: { - MaxLength: 250, - }, - serializedName: "planId", - required: true, - type: { - name: "String", - }, - }, - planName: { - constraints: { - MaxLength: 250, - }, - serializedName: "planName", - required: true, - type: { - name: "String", - }, - }, - termUnit: { - constraints: { - MaxLength: 50, - }, - serializedName: "termUnit", - type: { - name: "String", - }, - }, - termId: { - constraints: { - MaxLength: 250, - }, - serializedName: "termId", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const UserDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserDetails", - modelProperties: { - firstName: { - constraints: { - MaxLength: 50, - }, - serializedName: "firstName", - type: { - name: "String", - }, - }, - lastName: { - constraints: { - MaxLength: 50, - }, - serializedName: "lastName", - type: { - name: "String", - }, - }, - emailAddress: { - constraints: { - Pattern: new RegExp( - "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", - ), - }, - serializedName: "emailAddress", - type: { - name: "String", - }, - }, - upn: { - serializedName: "upn", - type: { - name: "String", - }, - }, - phoneNumber: { - constraints: { - MaxLength: 40, - }, - serializedName: "phoneNumber", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const CompanyDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompanyDetails", - modelProperties: { - companyName: { - serializedName: "companyName", - type: { - name: "String", - }, - }, - officeAddress: { - serializedName: "officeAddress", - type: { - name: "String", - }, - }, - country: { - serializedName: "country", - type: { - name: "String", - }, - }, - domain: { - serializedName: "domain", - type: { - name: "String", - }, - }, - business: { - serializedName: "business", - type: { - name: "String", - }, - }, - numberOfEmployees: { - serializedName: "numberOfEmployees", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const LinkOrganization: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinkOrganization", - modelProperties: { - token: { - serializedName: "token", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - }, - }, -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String", - }, - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String", - }, - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const InformaticaOrganizationResourceUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaOrganizationResourceUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OrganizationPropertiesCustomUpdate", - }, - }, - }, - }, - }; - -export const OrganizationPropertiesCustomUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrganizationPropertiesCustomUpdate", - modelProperties: { - informaticaOrganizationProperties: { - serializedName: "informaticaOrganizationProperties", - type: { - name: "Composite", - className: "InformaticaOrganizationResourceUpdate", - }, - }, - marketplaceDetails: { - serializedName: "marketplaceDetails", - type: { - name: "Composite", - className: "MarketplaceDetailsUpdate", - }, - }, - userDetails: { - serializedName: "userDetails", - type: { - name: "Composite", - className: "UserDetailsUpdate", - }, - }, - companyDetails: { - serializedName: "companyDetails", - type: { - name: "Composite", - className: "CompanyDetailsUpdate", - }, - }, - existingResourceId: { - serializedName: "existingResourceId", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const MarketplaceDetailsUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MarketplaceDetailsUpdate", - modelProperties: { - marketplaceSubscriptionId: { - serializedName: "marketplaceSubscriptionId", - type: { - name: "String", - }, - }, - offerDetails: { - serializedName: "offerDetails", - type: { - name: "Composite", - className: "OfferDetailsUpdate", - }, - }, - }, - }, -}; - -export const OfferDetailsUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OfferDetailsUpdate", - modelProperties: { - publisherId: { - constraints: { - MaxLength: 250, - }, - serializedName: "publisherId", - type: { - name: "String", - }, - }, - offerId: { - constraints: { - MaxLength: 250, - }, - serializedName: "offerId", - type: { - name: "String", - }, - }, - planId: { - constraints: { - MaxLength: 250, - }, - serializedName: "planId", - type: { - name: "String", - }, - }, - planName: { - constraints: { - MaxLength: 250, - }, - serializedName: "planName", - type: { - name: "String", - }, - }, - termUnit: { - constraints: { - MaxLength: 50, - }, - serializedName: "termUnit", - type: { - name: "String", - }, - }, - termId: { - constraints: { - MaxLength: 250, - }, - serializedName: "termId", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const UserDetailsUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserDetailsUpdate", - modelProperties: { - firstName: { - constraints: { - MaxLength: 50, - }, - serializedName: "firstName", - type: { - name: "String", - }, - }, - lastName: { - constraints: { - MaxLength: 50, - }, - serializedName: "lastName", - type: { - name: "String", - }, - }, - emailAddress: { - constraints: { - Pattern: new RegExp( - "^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", - ), - }, - serializedName: "emailAddress", - type: { - name: "String", - }, - }, - upn: { - serializedName: "upn", - type: { - name: "String", - }, - }, - phoneNumber: { - constraints: { - MaxLength: 40, - }, - serializedName: "phoneNumber", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const CompanyDetailsUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CompanyDetailsUpdate", - modelProperties: { - companyName: { - serializedName: "companyName", - type: { - name: "String", - }, - }, - officeAddress: { - serializedName: "officeAddress", - type: { - name: "String", - }, - }, - country: { - serializedName: "country", - type: { - name: "String", - }, - }, - domain: { - serializedName: "domain", - type: { - name: "String", - }, - }, - business: { - serializedName: "business", - type: { - name: "String", - }, - }, - numberOfEmployees: { - serializedName: "numberOfEmployees", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const InformaticaServerlessRuntimeResourceList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeResourceList", - modelProperties: { - informaticaRuntimeResources: { - serializedName: "informaticaRuntimeResources", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InfaRuntimeResourceFetchMetaData", - }, - }, - }, - }, - }, - }, - }; - -export const InfaRuntimeResourceFetchMetaData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InfaRuntimeResourceFetchMetaData", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - createdTime: { - serializedName: "createdTime", - required: true, - type: { - name: "String", - }, - }, - updatedTime: { - serializedName: "updatedTime", - required: true, - type: { - name: "String", - }, - }, - createdBy: { - serializedName: "createdBy", - required: true, - type: { - name: "String", - }, - }, - updatedBy: { - serializedName: "updatedBy", - required: true, - type: { - name: "String", - }, - }, - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - required: true, - type: { - name: "String", - }, - }, - status: { - serializedName: "status", - required: true, - type: { - name: "String", - }, - }, - statusLocalized: { - serializedName: "statusLocalized", - required: true, - type: { - name: "String", - }, - }, - statusMessage: { - serializedName: "statusMessage", - required: true, - type: { - name: "String", - }, - }, - serverlessConfigProperties: { - serializedName: "serverlessConfigProperties", - type: { - name: "Composite", - className: "InfaServerlessFetchConfigProperties", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const InfaServerlessFetchConfigProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InfaServerlessFetchConfigProperties", - modelProperties: { - subnet: { - serializedName: "subnet", - type: { - name: "String", - }, - }, - applicationType: { - serializedName: "applicationType", - type: { - name: "String", - }, - }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String", - }, - }, - advancedCustomProperties: { - serializedName: "advancedCustomProperties", - type: { - name: "String", - }, - }, - supplementaryFileLocation: { - serializedName: "supplementaryFileLocation", - type: { - name: "String", - }, - }, - platform: { - serializedName: "platform", - type: { - name: "String", - }, - }, - tags: { - serializedName: "tags", - type: { - name: "String", - }, - }, - vnet: { - serializedName: "vnet", - type: { - name: "String", - }, - }, - executionTimeout: { - serializedName: "executionTimeout", - type: { - name: "String", - }, - }, - computeUnits: { - serializedName: "computeUnits", - type: { - name: "String", - }, - }, - tenantId: { - serializedName: "tenantId", - type: { - name: "Uuid", - }, - }, - subscriptionId: { - serializedName: "subscriptionId", - type: { - name: "String", - }, - }, - region: { - serializedName: "region", - type: { - name: "String", - }, - }, - serverlessArmResourceId: { - serializedName: "serverlessArmResourceId", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ServerlessMetadataResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessMetadataResponse", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String", - }, - }, - serverlessConfigProperties: { - serializedName: "serverlessConfigProperties", - type: { - name: "Composite", - className: "ServerlessConfigProperties", - }, - }, - serverlessRuntimeConfigProperties: { - serializedName: "serverlessRuntimeConfigProperties", - type: { - name: "Composite", - className: "ServerlessRuntimeConfigProperties", - }, - }, - }, - }, -}; - -export const ServerlessConfigProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessConfigProperties", - modelProperties: { - platform: { - serializedName: "platform", - type: { - name: "String", - }, - }, - applicationTypes: { - serializedName: "applicationTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationTypeMetadata", - }, - }, - }, - }, - computeUnits: { - serializedName: "computeUnits", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComputeUnitsMetadata", - }, - }, - }, - }, - executionTimeout: { - serializedName: "executionTimeout", - type: { - name: "String", - }, - }, - regions: { - serializedName: "regions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegionsMetadata", - }, - }, - }, - }, - }, - }, -}; - -export const ApplicationTypeMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationTypeMetadata", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ComputeUnitsMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComputeUnitsMetadata", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const RegionsMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RegionsMetadata", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ServerlessRuntimeConfigProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessRuntimeConfigProperties", - modelProperties: { - cdiConfigProps: { - serializedName: "cdiConfigProps", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdiConfigProps", - }, - }, - }, - }, - cdieConfigProps: { - serializedName: "cdieConfigProps", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdiConfigProps", - }, - }, - }, - }, - }, - }, -}; - -export const CdiConfigProps: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CdiConfigProps", - modelProperties: { - engineName: { - serializedName: "engineName", - required: true, - type: { - name: "String", - }, - }, - engineVersion: { - serializedName: "engineVersion", - required: true, - type: { - name: "String", - }, - }, - applicationConfigs: { - serializedName: "applicationConfigs", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationConfigs", - }, - }, - }, - }, - }, - }, -}; - -export const ApplicationConfigs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationConfigs", - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - required: true, - type: { - name: "String", - }, - }, - platform: { - serializedName: "platform", - required: true, - type: { - name: "String", - }, - }, - customized: { - serializedName: "customized", - required: true, - type: { - name: "String", - }, - }, - defaultValue: { - serializedName: "defaultValue", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const InformaticaServerlessRuntimeResourceListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeResourceListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const InformaticaServerlessRuntimeProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - platform: { - serializedName: "platform", - type: { - name: "String", - }, - }, - applicationType: { - serializedName: "applicationType", - type: { - name: "String", - }, - }, - computeUnits: { - serializedName: "computeUnits", - type: { - name: "String", - }, - }, - executionTimeout: { - serializedName: "executionTimeout", - type: { - name: "String", - }, - }, - serverlessAccountLocation: { - serializedName: "serverlessAccountLocation", - required: true, - type: { - name: "String", - }, - }, - serverlessRuntimeNetworkProfile: { - serializedName: "serverlessRuntimeNetworkProfile", - type: { - name: "Composite", - className: "ServerlessRuntimeNetworkProfile", - }, - }, - advancedCustomProperties: { - serializedName: "advancedCustomProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdvancedCustomProperties", - }, - }, - }, - }, - supplementaryFileLocation: { - serializedName: "supplementaryFileLocation", - type: { - name: "String", - }, - }, - serverlessRuntimeConfig: { - serializedName: "serverlessRuntimeConfig", - type: { - name: "Composite", - className: "ServerlessRuntimeConfigProperties", - }, - }, - serverlessRuntimeTags: { - serializedName: "serverlessRuntimeTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerlessRuntimeTag", - }, - }, - }, - }, - serverlessRuntimeUserContextProperties: { - serializedName: "serverlessRuntimeUserContextProperties", - type: { - name: "Composite", - className: "ServerlessRuntimeUserContextProperties", - }, - }, - }, - }, - }; - -export const ServerlessRuntimeNetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessRuntimeNetworkProfile", - modelProperties: { - networkInterfaceConfiguration: { - serializedName: "networkInterfaceConfiguration", - type: { - name: "Composite", - className: "NetworkInterfaceConfiguration", - }, - }, - }, - }, -}; - -export const NetworkInterfaceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterfaceConfiguration", - modelProperties: { - vnetId: { - serializedName: "vnetId", - required: true, - type: { - name: "String", - }, - }, - subnetId: { - serializedName: "subnetId", - required: true, - type: { - name: "String", - }, - }, - vnetResourceGuid: { - serializedName: "vnetResourceGuid", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AdvancedCustomProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdvancedCustomProperties", - modelProperties: { - key: { - serializedName: "key", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ServerlessRuntimeTag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessRuntimeTag", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ServerlessRuntimeUserContextProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessRuntimeUserContextProperties", - modelProperties: { - userContextToken: { - serializedName: "userContextToken", - required: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const InformaticaServerlessRuntimeResourceUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeResourceUpdate", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ServerlessRuntimePropertiesCustomUpdate", - }, - }, - }, - }, - }; - -export const ServerlessRuntimePropertiesCustomUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessRuntimePropertiesCustomUpdate", - modelProperties: { - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - platform: { - serializedName: "platform", - type: { - name: "String", - }, - }, - applicationType: { - serializedName: "applicationType", - type: { - name: "String", - }, - }, - computeUnits: { - serializedName: "computeUnits", - type: { - name: "String", - }, - }, - executionTimeout: { - serializedName: "executionTimeout", - type: { - name: "String", - }, - }, - serverlessAccountLocation: { - serializedName: "serverlessAccountLocation", - type: { - name: "String", - }, - }, - serverlessRuntimeNetworkProfile: { - serializedName: "serverlessRuntimeNetworkProfile", - type: { - name: "Composite", - className: "ServerlessRuntimeNetworkProfileUpdate", - }, - }, - advancedCustomProperties: { - serializedName: "advancedCustomProperties", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdvancedCustomProperties", - }, - }, - }, - }, - supplementaryFileLocation: { - serializedName: "supplementaryFileLocation", - type: { - name: "String", - }, - }, - serverlessRuntimeConfig: { - serializedName: "serverlessRuntimeConfig", - type: { - name: "Composite", - className: "ServerlessRuntimeConfigPropertiesUpdate", - }, - }, - serverlessRuntimeTags: { - serializedName: "serverlessRuntimeTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerlessRuntimeTag", - }, - }, - }, - }, - serverlessRuntimeUserContextProperties: { - serializedName: "serverlessRuntimeUserContextProperties", - type: { - name: "Composite", - className: "ServerlessRuntimeUserContextPropertiesUpdate", - }, - }, - }, - }, - }; - -export const ServerlessRuntimeNetworkProfileUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessRuntimeNetworkProfileUpdate", - modelProperties: { - networkInterfaceConfiguration: { - serializedName: "networkInterfaceConfiguration", - type: { - name: "Composite", - className: "NetworkInterfaceConfigurationUpdate", - }, - }, - }, - }, - }; - -export const NetworkInterfaceConfigurationUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterfaceConfigurationUpdate", - modelProperties: { - vnetId: { - serializedName: "vnetId", - type: { - name: "String", - }, - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String", - }, - }, - vnetResourceGuid: { - serializedName: "vnetResourceGuid", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ServerlessRuntimeConfigPropertiesUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessRuntimeConfigPropertiesUpdate", - modelProperties: { - cdiConfigProps: { - serializedName: "cdiConfigProps", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdiConfigProps", - }, - }, - }, - }, - cdieConfigProps: { - serializedName: "cdieConfigProps", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CdiConfigProps", - }, - }, - }, - }, - }, - }, - }; - -export const ServerlessRuntimeUserContextPropertiesUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessRuntimeUserContextPropertiesUpdate", - modelProperties: { - userContextToken: { - serializedName: "userContextToken", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const CheckDependenciesResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CheckDependenciesResponse", - modelProperties: { - count: { - serializedName: "count", - required: true, - type: { - name: "Number", - }, - }, - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - references: { - serializedName: "references", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerlessRuntimeDependency", - }, - }, - }, - }, - }, - }, -}; - -export const ServerlessRuntimeDependency: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessRuntimeDependency", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - appContextId: { - serializedName: "appContextId", - required: true, - type: { - name: "String", - }, - }, - path: { - serializedName: "path", - required: true, - type: { - name: "String", - }, - }, - documentType: { - serializedName: "documentType", - required: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - required: true, - type: { - name: "String", - }, - }, - lastUpdatedTime: { - serializedName: "lastUpdatedTime", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - -export const InformaticaOrganizationResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InformaticaOrganizationResource", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OrganizationProperties", - }, - }, - }, - }, -}; - -export const InformaticaServerlessRuntimeResource: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "InformaticaServerlessRuntimeProperties", - }, - }, - }, - }, - }; - -export const OrganizationsCreateOrUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrganizationsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const OrganizationsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrganizationsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const ServerlessRuntimesCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerlessRuntimesCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const ServerlessRuntimesDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerlessRuntimesDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/models/parameters.ts b/sdk/informatica/arm-informaticadatamanagement/src/models/parameters.ts deleted file mode 100644 index d2691bd57d02..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/models/parameters.ts +++ /dev/null @@ -1,156 +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 { - OperationParameter, - OperationURLParameter, - OperationQueryParameter, -} from "@azure/core-client"; -import { - InformaticaOrganizationResource as InformaticaOrganizationResourceMapper, - InformaticaOrganizationResourceUpdate as InformaticaOrganizationResourceUpdateMapper, - InformaticaServerlessRuntimeResource as InformaticaServerlessRuntimeResourceMapper, - InformaticaServerlessRuntimeResourceUpdate as InformaticaServerlessRuntimeResourceUpdateMapper, -} from "../models/mappers.js"; - -export const accept: OperationParameter = { - parameterPath: "accept", - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Accept", - type: { - name: "String", - }, - }, -}; - -export const $host: OperationURLParameter = { - parameterPath: "$host", - mapper: { - serializedName: "$host", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2024-05-08", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - constraints: { - MinLength: 1, - }, - serializedName: "subscriptionId", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1, - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const organizationName: OperationURLParameter = { - parameterPath: "organizationName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9_-]*$"), - }, - serializedName: "organizationName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String", - }, - }, -}; - -export const resource: OperationParameter = { - parameterPath: "resource", - mapper: InformaticaOrganizationResourceMapper, -}; - -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: InformaticaOrganizationResourceUpdateMapper, -}; - -export const serverlessRuntimeName: OperationURLParameter = { - parameterPath: "serverlessRuntimeName", - mapper: { - constraints: { - Pattern: new RegExp("^[a-zA-Z0-9_-]*$"), - }, - serializedName: "serverlessRuntimeName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resource1: OperationParameter = { - parameterPath: "resource", - mapper: InformaticaServerlessRuntimeResourceMapper, -}; - -export const properties1: OperationParameter = { - parameterPath: "properties", - mapper: InformaticaServerlessRuntimeResourceUpdateMapper, -}; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operations/index.ts b/sdk/informatica/arm-informaticadatamanagement/src/operations/index.ts deleted file mode 100644 index 953a535ff8c5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operations/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations.js"; -export * from "./organizations.js"; -export * from "./serverlessRuntimes.js"; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operations/operations.ts b/sdk/informatica/arm-informaticadatamanagement/src/operations/operations.ts deleted file mode 100644 index b5f35059ea86..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operations/operations.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import { Operations } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { InformaticaDataManagement } from "../informaticaDataManagement.js"; -import { - Operation, - OperationsListNextOptionalParams, - OperationsListOptionalParams, - OperationsListResponse, - OperationsListNextResponse, -} from "../models/index.js"; - -/// -/** Class containing Operations operations. */ -export class OperationsImpl implements Operations { - private readonly client: InformaticaDataManagement; - - /** - * Initialize a new instance of the class Operations class. - * @param client Reference to the service client - */ - constructor(client: InformaticaDataManagement) { - this.client = client; - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - }, - }; - } - - private async *listPagingPage( - options?: OperationsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OperationsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: OperationsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: OperationsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/providers/Informatica.DataManagement/operations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [Parameters.$host, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operations/organizations.ts b/sdk/informatica/arm-informaticadatamanagement/src/operations/organizations.ts deleted file mode 100644 index efd21f1d5ac4..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operations/organizations.ts +++ /dev/null @@ -1,723 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import { Organizations } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { InformaticaDataManagement } from "../informaticaDataManagement.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl.js"; -import { - InformaticaOrganizationResource, - OrganizationsListBySubscriptionNextOptionalParams, - OrganizationsListBySubscriptionOptionalParams, - OrganizationsListBySubscriptionResponse, - OrganizationsListByResourceGroupNextOptionalParams, - OrganizationsListByResourceGroupOptionalParams, - OrganizationsListByResourceGroupResponse, - OrganizationsGetOptionalParams, - OrganizationsGetResponse, - OrganizationsCreateOrUpdateOptionalParams, - OrganizationsCreateOrUpdateResponse, - InformaticaOrganizationResourceUpdate, - OrganizationsUpdateOptionalParams, - OrganizationsUpdateResponse, - OrganizationsDeleteOptionalParams, - OrganizationsDeleteResponse, - OrganizationsGetAllServerlessRuntimesOptionalParams, - OrganizationsGetAllServerlessRuntimesResponse, - OrganizationsGetServerlessMetadataOptionalParams, - OrganizationsGetServerlessMetadataResponse, - OrganizationsListBySubscriptionNextResponse, - OrganizationsListByResourceGroupNextResponse, -} from "../models/index.js"; - -/// -/** Class containing Organizations operations. */ -export class OrganizationsImpl implements Organizations { - private readonly client: InformaticaDataManagement; - - /** - * Initialize a new instance of the class Organizations class. - * @param client Reference to the service client - */ - constructor(client: InformaticaDataManagement) { - this.client = client; - } - - /** - * List InformaticaOrganizationResource resources by subscription ID - * @param options The options parameters. - */ - public listBySubscription( - options?: OrganizationsListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - }, - }; - } - - private async *listBySubscriptionPagingPage( - options?: OrganizationsListBySubscriptionOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OrganizationsListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: OrganizationsListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List InformaticaOrganizationResource resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: OrganizationsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: OrganizationsListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OrganizationsListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: OrganizationsListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * List InformaticaOrganizationResource resources by subscription ID - * @param options The options parameters. - */ - private _listBySubscription( - options?: OrganizationsListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - - /** - * List InformaticaOrganizationResource resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: OrganizationsListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * Get a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - get( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, options }, - getOperationSpec, - ); - } - - /** - * Create a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - organizationName: string, - resource: InformaticaOrganizationResource, - options?: OrganizationsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OrganizationsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, organizationName, resource, options }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - OrganizationsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - organizationName: string, - resource: InformaticaOrganizationResource, - options?: OrganizationsCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - organizationName, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - organizationName: string, - properties: InformaticaOrganizationResourceUpdate, - options?: OrganizationsUpdateOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, properties, options }, - updateOperationSpec, - ); - } - - /** - * Delete a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OrganizationsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, organizationName, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - OrganizationsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - organizationName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Gets all serverless runtime resources in a given informatica organization resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - getAllServerlessRuntimes( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsGetAllServerlessRuntimesOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, options }, - getAllServerlessRuntimesOperationSpec, - ); - } - - /** - * Gets Metadata of the serverless runtime environment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - getServerlessMetadata( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsGetServerlessMetadataOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, options }, - getServerlessMetadataOperationSpec, - ); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: OrganizationsListBySubscriptionNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: OrganizationsListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Informatica.DataManagement/organizations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResourceListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResourceListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResource, - }, - 201: { - bodyMapper: Mappers.InformaticaOrganizationResource, - }, - 202: { - bodyMapper: Mappers.InformaticaOrganizationResource, - }, - 204: { - bodyMapper: Mappers.InformaticaOrganizationResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.OrganizationsDeleteHeaders, - }, - 201: { - headersMapper: Mappers.OrganizationsDeleteHeaders, - }, - 202: { - headersMapper: Mappers.OrganizationsDeleteHeaders, - }, - 204: { - headersMapper: Mappers.OrganizationsDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getAllServerlessRuntimesOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getAllServerlessRuntimes", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResourceList, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getServerlessMetadataOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/getServerlessMetadata", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ServerlessMetadataResponse, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResourceListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaOrganizationResourceListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operations/serverlessRuntimes.ts b/sdk/informatica/arm-informaticadatamanagement/src/operations/serverlessRuntimes.ts deleted file mode 100644 index a823e8317610..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operations/serverlessRuntimes.ts +++ /dev/null @@ -1,707 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import { ServerlessRuntimes } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { InformaticaDataManagement } from "../informaticaDataManagement.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl.js"; -import { - InformaticaServerlessRuntimeResource, - ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams, - ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - ServerlessRuntimesListByInformaticaOrganizationResourceResponse, - ServerlessRuntimesGetOptionalParams, - ServerlessRuntimesGetResponse, - ServerlessRuntimesCreateOrUpdateOptionalParams, - ServerlessRuntimesCreateOrUpdateResponse, - InformaticaServerlessRuntimeResourceUpdate, - ServerlessRuntimesUpdateOptionalParams, - ServerlessRuntimesUpdateResponse, - ServerlessRuntimesDeleteOptionalParams, - ServerlessRuntimesDeleteResponse, - ServerlessRuntimesCheckDependenciesOptionalParams, - ServerlessRuntimesCheckDependenciesResponse, - ServerlessRuntimesServerlessResourceByIdOptionalParams, - ServerlessRuntimesServerlessResourceByIdResponse, - ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams, - ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse, -} from "../models/index.js"; - -/// -/** Class containing ServerlessRuntimes operations. */ -export class ServerlessRuntimesImpl implements ServerlessRuntimes { - private readonly client: InformaticaDataManagement; - - /** - * Initialize a new instance of the class ServerlessRuntimes class. - * @param client Reference to the service client - */ - constructor(client: InformaticaDataManagement) { - this.client = client; - } - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - public listByInformaticaOrganizationResource( - resourceGroupName: string, - organizationName: string, - options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByInformaticaOrganizationResourcePagingAll( - resourceGroupName, - organizationName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByInformaticaOrganizationResourcePagingPage( - resourceGroupName, - organizationName, - options, - settings, - ); - }, - }; - } - - private async *listByInformaticaOrganizationResourcePagingPage( - resourceGroupName: string, - organizationName: string, - options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: ServerlessRuntimesListByInformaticaOrganizationResourceResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByInformaticaOrganizationResource( - resourceGroupName, - organizationName, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByInformaticaOrganizationResourceNext( - resourceGroupName, - organizationName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByInformaticaOrganizationResourcePagingAll( - resourceGroupName: string, - organizationName: string, - options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByInformaticaOrganizationResourcePagingPage( - resourceGroupName, - organizationName, - options, - )) { - yield* page; - } - } - - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - private _listByInformaticaOrganizationResource( - resourceGroupName: string, - organizationName: string, - options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, options }, - listByInformaticaOrganizationResourceOperationSpec, - ); - } - - /** - * Get a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - get( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, serverlessRuntimeName, options }, - getOperationSpec, - ); - } - - /** - * Create a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - resource: InformaticaServerlessRuntimeResource, - options?: ServerlessRuntimesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ServerlessRuntimesCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - ServerlessRuntimesCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - resource: InformaticaServerlessRuntimeResource, - options?: ServerlessRuntimesCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - organizationName, - serverlessRuntimeName, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - properties: InformaticaServerlessRuntimeResourceUpdate, - options?: ServerlessRuntimesUpdateOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - organizationName, - serverlessRuntimeName, - properties, - options, - }, - updateOperationSpec, - ); - } - - /** - * Delete a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ServerlessRuntimesDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - organizationName, - serverlessRuntimeName, - options, - }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - ServerlessRuntimesDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - organizationName, - serverlessRuntimeName, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Checks all dependencies for a serverless runtime resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - checkDependencies( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesCheckDependenciesOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, serverlessRuntimeName, options }, - checkDependenciesOperationSpec, - ); - } - - /** - * Returns a serverless runtime resource by ID - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - serverlessResourceById( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesServerlessResourceByIdOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, serverlessRuntimeName, options }, - serverlessResourceByIdOperationSpec, - ); - } - - /** - * Starts a failed runtime resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - startFailedServerlessRuntime( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, serverlessRuntimeName, options }, - startFailedServerlessRuntimeOperationSpec, - ); - } - - /** - * ListByInformaticaOrganizationResourceNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param nextLink The nextLink from the previous successful call to the - * ListByInformaticaOrganizationResource method. - * @param options The options parameters. - */ - private _listByInformaticaOrganizationResourceNext( - resourceGroupName: string, - organizationName: string, - nextLink: string, - options?: ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, organizationName, nextLink, options }, - listByInformaticaOrganizationResourceNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByInformaticaOrganizationResourceOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResourceListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - 201: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - 202: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - 204: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.ServerlessRuntimesDeleteHeaders, - }, - 201: { - headersMapper: Mappers.ServerlessRuntimesDeleteHeaders, - }, - 202: { - headersMapper: Mappers.ServerlessRuntimesDeleteHeaders, - }, - 204: { - headersMapper: Mappers.ServerlessRuntimesDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const checkDependenciesOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CheckDependenciesResponse, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const serverlessResourceByIdOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResource, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const startFailedServerlessRuntimeOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/startFailedServerlessRuntime", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - Parameters.serverlessRuntimeName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByInformaticaOrganizationResourceNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.InformaticaServerlessRuntimeResourceListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName, - ], - headerParameters: [Parameters.accept], - serializer, - }; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/index.ts b/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/index.ts deleted file mode 100644 index 953a535ff8c5..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations.js"; -export * from "./organizations.js"; -export * from "./serverlessRuntimes.js"; diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/operations.ts b/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/operations.ts deleted file mode 100644 index 2c280c7eb723..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/operations.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models/index.js"; - -/// -/** Interface representing a Operations. */ -export interface Operations { - /** - * List the operations for the provider - * @param options The options parameters. - */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/organizations.ts b/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/organizations.ts deleted file mode 100644 index 9958045b06bf..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/organizations.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - InformaticaOrganizationResource, - OrganizationsListBySubscriptionOptionalParams, - OrganizationsListByResourceGroupOptionalParams, - OrganizationsGetOptionalParams, - OrganizationsGetResponse, - OrganizationsCreateOrUpdateOptionalParams, - OrganizationsCreateOrUpdateResponse, - InformaticaOrganizationResourceUpdate, - OrganizationsUpdateOptionalParams, - OrganizationsUpdateResponse, - OrganizationsDeleteOptionalParams, - OrganizationsDeleteResponse, - OrganizationsGetAllServerlessRuntimesOptionalParams, - OrganizationsGetAllServerlessRuntimesResponse, - OrganizationsGetServerlessMetadataOptionalParams, - OrganizationsGetServerlessMetadataResponse, -} from "../models/index.js"; - -/// -/** Interface representing a Organizations. */ -export interface Organizations { - /** - * List InformaticaOrganizationResource resources by subscription ID - * @param options The options parameters. - */ - listBySubscription( - options?: OrganizationsListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; - /** - * List InformaticaOrganizationResource resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: OrganizationsListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - get( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsGetOptionalParams, - ): Promise; - /** - * Create a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - organizationName: string, - resource: InformaticaOrganizationResource, - options?: OrganizationsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OrganizationsCreateOrUpdateResponse - > - >; - /** - * Create a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - organizationName: string, - resource: InformaticaOrganizationResource, - options?: OrganizationsCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - organizationName: string, - properties: InformaticaOrganizationResourceUpdate, - options?: OrganizationsUpdateOptionalParams, - ): Promise; - /** - * Delete a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OrganizationsDeleteResponse - > - >; - /** - * Delete a InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsDeleteOptionalParams, - ): Promise; - /** - * Gets all serverless runtime resources in a given informatica organization resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - getAllServerlessRuntimes( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsGetAllServerlessRuntimesOptionalParams, - ): Promise; - /** - * Gets Metadata of the serverless runtime environment. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - getServerlessMetadata( - resourceGroupName: string, - organizationName: string, - options?: OrganizationsGetServerlessMetadataOptionalParams, - ): Promise; -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/serverlessRuntimes.ts b/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/serverlessRuntimes.ts deleted file mode 100644 index 68fa0988c02d..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/operationsInterfaces/serverlessRuntimes.ts +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - InformaticaServerlessRuntimeResource, - ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - ServerlessRuntimesGetOptionalParams, - ServerlessRuntimesGetResponse, - ServerlessRuntimesCreateOrUpdateOptionalParams, - ServerlessRuntimesCreateOrUpdateResponse, - InformaticaServerlessRuntimeResourceUpdate, - ServerlessRuntimesUpdateOptionalParams, - ServerlessRuntimesUpdateResponse, - ServerlessRuntimesDeleteOptionalParams, - ServerlessRuntimesDeleteResponse, - ServerlessRuntimesCheckDependenciesOptionalParams, - ServerlessRuntimesCheckDependenciesResponse, - ServerlessRuntimesServerlessResourceByIdOptionalParams, - ServerlessRuntimesServerlessResourceByIdResponse, - ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams, -} from "../models/index.js"; - -/// -/** Interface representing a ServerlessRuntimes. */ -export interface ServerlessRuntimes { - /** - * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param options The options parameters. - */ - listByInformaticaOrganizationResource( - resourceGroupName: string, - organizationName: string, - options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - get( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesGetOptionalParams, - ): Promise; - /** - * Create a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - resource: InformaticaServerlessRuntimeResource, - options?: ServerlessRuntimesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ServerlessRuntimesCreateOrUpdateResponse - > - >; - /** - * Create a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - resource: InformaticaServerlessRuntimeResource, - options?: ServerlessRuntimesCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - update( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - properties: InformaticaServerlessRuntimeResourceUpdate, - options?: ServerlessRuntimesUpdateOptionalParams, - ): Promise; - /** - * Delete a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ServerlessRuntimesDeleteResponse - > - >; - /** - * Delete a InformaticaServerlessRuntimeResource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesDeleteOptionalParams, - ): Promise; - /** - * Checks all dependencies for a serverless runtime resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - checkDependencies( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesCheckDependenciesOptionalParams, - ): Promise; - /** - * Returns a serverless runtime resource by ID - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - serverlessResourceById( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesServerlessResourceByIdOptionalParams, - ): Promise; - /** - * Starts a failed runtime resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param organizationName Name of the Organizations resource - * @param serverlessRuntimeName Name of the Serverless Runtime resource - * @param options The options parameters. - */ - startFailedServerlessRuntime( - resourceGroupName: string, - organizationName: string, - serverlessRuntimeName: string, - options?: ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams, - ): Promise; -} diff --git a/sdk/informatica/arm-informaticadatamanagement/src/pagingHelper.ts b/sdk/informatica/arm-informaticadatamanagement/src/pagingHelper.ts deleted file mode 100644 index 205cccc26592..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/src/pagingHelper.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export interface PageInfo { - continuationToken?: string; -} - -const pageMap = new WeakMap(); - -/** - * Given the last `.value` produced by the `byPage` iterator, - * returns a continuation token that can be used to begin paging from - * that point later. - * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. - * @returns The continuation token that can be passed into byPage() during future calls. - */ -export function getContinuationToken(page: unknown): string | undefined { - if (typeof page !== "object" || page === null) { - return undefined; - } - return pageMap.get(page)?.continuationToken; -} - -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { - if (typeof page !== "object" || page === null || !continuationToken) { - return; - } - const pageInfo = pageMap.get(page) ?? {}; - pageInfo.continuationToken = continuationToken; - pageMap.set(page, pageInfo); -} 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 092e16c3ae15..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/test/informaticadatamanagement_operations_test.spec.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. - */ - -import type { RecorderStartOptions } from "@azure-tools/test-recorder"; -import { env, Recorder, isPlaybackMode } from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { InformaticaDataManagement } from "../src/informaticaDataManagement.js"; -import { describe, it, assert, beforeEach, afterEach } from "vitest"; - -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; - - beforeEach(async (ctx) => { - recorder = new Recorder(ctx); - 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({}), - ); - }); - - afterEach(async () => { - await recorder.stop(); - }); - - it("operation list test", async () => { - const resArray = new Array(); - for await (const item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}); diff --git a/sdk/informatica/arm-informaticadatamanagement/test/snippets.spec.ts b/sdk/informatica/arm-informaticadatamanagement/test/snippets.spec.ts deleted file mode 100644 index 108b0287b5c1..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/test/snippets.spec.ts +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { AstroManagementClient } from "../src/index.js"; -import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; -import { setLogLevel } from "@azure/logger"; -import { describe, it } from "vitest"; - -describe("snippets", () => { - it("ReadmeSampleCreateClient_Node", async () => { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const client = new AstroManagementClient(new DefaultAzureCredential(), subscriptionId); - }); - - it("ReadmeSampleCreateClient_Browser", async () => { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new InteractiveBrowserCredential({ - tenantId: "", - clientId: "", - }); - const client = new AstroManagementClient(credential, subscriptionId); - }); - - it("SetLogLevel", async () => { - setLogLevel("info"); - }); -}); diff --git a/sdk/informatica/arm-informaticadatamanagement/tsconfig.browser.config.json b/sdk/informatica/arm-informaticadatamanagement/tsconfig.browser.config.json deleted file mode 100644 index 75871518e3a0..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/tsconfig.browser.config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] -} diff --git a/sdk/informatica/arm-informaticadatamanagement/tsconfig.json b/sdk/informatica/arm-informaticadatamanagement/tsconfig.json deleted file mode 100644 index 19ceb382b521..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "references": [ - { - "path": "./tsconfig.src.json" - }, - { - "path": "./tsconfig.samples.json" - }, - { - "path": "./tsconfig.test.json" - } - ] -} diff --git a/sdk/informatica/arm-informaticadatamanagement/tsconfig.samples.json b/sdk/informatica/arm-informaticadatamanagement/tsconfig.samples.json deleted file mode 100644 index f66f589d5c61..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/tsconfig.samples.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../../../tsconfig.samples.base.json", - "compilerOptions": { - "paths": { - "@azure/arm-informaticadatamanagement": ["./dist/esm"] - } - } -} diff --git a/sdk/informatica/arm-informaticadatamanagement/tsconfig.src.json b/sdk/informatica/arm-informaticadatamanagement/tsconfig.src.json deleted file mode 100644 index bae70752dd38..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/tsconfig.src.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../../tsconfig.lib.json" -} diff --git a/sdk/informatica/arm-informaticadatamanagement/tsconfig.test.json b/sdk/informatica/arm-informaticadatamanagement/tsconfig.test.json deleted file mode 100644 index 290ca214aebc..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/tsconfig.test.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] -} diff --git a/sdk/informatica/arm-informaticadatamanagement/tsp-location.yaml b/sdk/informatica/arm-informaticadatamanagement/tsp-location.yaml new file mode 100644 index 000000000000..9ea029ad07d3 --- /dev/null +++ b/sdk/informatica/arm-informaticadatamanagement/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/informatica/Informatica.DataManagement.Management +commit: b9f479b3355faaaeb1744bacab86a97ff0c2bde0 +repo: ../azure-rest-api-specs +additionalDirectories: diff --git a/sdk/informatica/arm-informaticadatamanagement/vitest.browser.config.ts b/sdk/informatica/arm-informaticadatamanagement/vitest.browser.config.ts deleted file mode 100644 index 10e70dbfa8ee..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/vitest.browser.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { defineConfig, mergeConfig } from "vitest/config"; -import viteConfig from "../../../vitest.browser.shared.config.ts"; - -export default mergeConfig( - viteConfig, - defineConfig({ - test: { - include: ["dist-test/browser/test/**/*.spec.js"], - testTimeout: 1200000, - hookTimeout: 1200000, - }, - }), -); diff --git a/sdk/informatica/arm-informaticadatamanagement/vitest.config.ts b/sdk/informatica/arm-informaticadatamanagement/vitest.config.ts deleted file mode 100644 index 86a71911ccc2..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/vitest.config.ts +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { defineConfig, mergeConfig } from "vitest/config"; -import viteConfig from "../../../vitest.shared.config.ts"; - -export default mergeConfig( - viteConfig, - defineConfig({ - test: { - testTimeout: 1200000, - hookTimeout: 1200000, - }, - }), -); diff --git a/sdk/informatica/arm-informaticadatamanagement/vitest.esm.config.ts b/sdk/informatica/arm-informaticadatamanagement/vitest.esm.config.ts deleted file mode 100644 index 5e9735e9b144..000000000000 --- a/sdk/informatica/arm-informaticadatamanagement/vitest.esm.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -import { mergeConfig } from "vitest/config"; -import vitestConfig from "./vitest.config.ts"; -import vitestEsmConfig from "../../../vitest.esm.shared.config.ts"; - -export default mergeConfig(vitestConfig, vitestEsmConfig);