[mgmt] informatica release (#29785)
https://github.com/Azure/sdk-release-request/issues/5065
This commit is contained in:
Родитель
1e76d19ce0
Коммит
578e4ca4ea
|
@ -534,6 +534,9 @@
|
|||
# PRLabel: %Mgmt
|
||||
/sdk/hybridkubernetes/arm-hybridkubernetes/ @qiaozha @MaryGao
|
||||
|
||||
# PRLabel: %Mgmt
|
||||
/sdk/informatica/arm-informaticadatamanagement @qiaozha @MaryGao
|
||||
|
||||
# PRLabel: %Mgmt
|
||||
/sdk/iotcentral/arm-iotcentral/ @qiaozha @MaryGao
|
||||
|
||||
|
|
|
@ -371,6 +371,9 @@ dependencies:
|
|||
'@rush-temp/arm-imagebuilder':
|
||||
specifier: file:./projects/arm-imagebuilder.tgz
|
||||
version: file:projects/arm-imagebuilder.tgz
|
||||
'@rush-temp/arm-informaticadatamanagement':
|
||||
specifier: file:./projects/arm-informaticadatamanagement.tgz
|
||||
version: file:projects/arm-informaticadatamanagement.tgz
|
||||
'@rush-temp/arm-iotcentral':
|
||||
specifier: file:./projects/arm-iotcentral.tgz
|
||||
version: file:projects/arm-iotcentral.tgz
|
||||
|
@ -3325,7 +3328,7 @@ packages:
|
|||
resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==}
|
||||
dependencies:
|
||||
'@types/connect': 3.4.38
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/bunyan@1.8.9:
|
||||
|
@ -3353,7 +3356,7 @@ packages:
|
|||
/@types/connect@3.4.38:
|
||||
resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/cookie@0.4.1:
|
||||
|
@ -3363,7 +3366,7 @@ packages:
|
|||
/@types/cors@2.8.17:
|
||||
resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/debug@4.1.12:
|
||||
|
@ -3402,7 +3405,7 @@ packages:
|
|||
/@types/express-serve-static-core@4.19.0:
|
||||
resolution: {integrity: sha512-bGyep3JqPCRry1wq+O5n7oiBgGWmeIJXPjXXCo8EK0u8duZGSYar7cGqd3ML2JUsLGeB7fmc06KYo9fLGWqPvQ==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
'@types/qs': 6.9.15
|
||||
'@types/range-parser': 1.2.7
|
||||
'@types/send': 0.17.4
|
||||
|
@ -3430,7 +3433,7 @@ packages:
|
|||
resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==}
|
||||
dependencies:
|
||||
'@types/jsonfile': 6.1.4
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/fs-extra@8.1.5:
|
||||
|
@ -3473,7 +3476,7 @@ packages:
|
|||
/@types/jsonfile@6.1.4:
|
||||
resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/jsonwebtoken@9.0.6:
|
||||
|
@ -3538,7 +3541,7 @@ packages:
|
|||
/@types/node-fetch@2.6.11:
|
||||
resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
form-data: 4.0.0
|
||||
dev: false
|
||||
|
||||
|
@ -3587,7 +3590,7 @@ packages:
|
|||
/@types/readdir-glob@1.1.5:
|
||||
resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/resolve@1.20.2:
|
||||
|
@ -3613,7 +3616,7 @@ packages:
|
|||
resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==}
|
||||
dependencies:
|
||||
'@types/http-errors': 2.0.4
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
'@types/send': 0.17.4
|
||||
dev: false
|
||||
|
||||
|
@ -3654,7 +3657,7 @@ packages:
|
|||
/@types/tunnel@0.0.3:
|
||||
resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==}
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
|
||||
/@types/underscore@1.11.15:
|
||||
|
@ -3695,7 +3698,7 @@ packages:
|
|||
resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}
|
||||
requiresBuild: true
|
||||
dependencies:
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
|
@ -5443,7 +5446,7 @@ packages:
|
|||
dependencies:
|
||||
'@types/cookie': 0.4.1
|
||||
'@types/cors': 2.8.17
|
||||
'@types/node': 18.19.33
|
||||
'@types/node': 20.10.8
|
||||
accepts: 1.3.8
|
||||
base64id: 2.0.0
|
||||
cookie: 0.4.2
|
||||
|
@ -14919,6 +14922,37 @@ packages:
|
|||
- supports-color
|
||||
dev: false
|
||||
|
||||
file:projects/arm-informaticadatamanagement.tgz:
|
||||
resolution: {integrity: sha512-4ZoBX8l7MMUojMK0UPDFYD+WekFgLiDDH1gXAxCxbiQK7DsI6slk4e1jA92nZVKhcOeKjQlvxUazv3npWw/7aA==, tarball: file:projects/arm-informaticadatamanagement.tgz}
|
||||
name: '@rush-temp/arm-informaticadatamanagement'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-credential': 1.1.0
|
||||
'@azure-tools/test-recorder': 3.5.0
|
||||
'@azure/abort-controller': 1.1.0
|
||||
'@azure/core-lro': 2.7.2
|
||||
'@azure/identity': 4.2.0
|
||||
'@microsoft/api-extractor': 7.45.1(@types/node@18.19.33)
|
||||
'@types/chai': 4.3.16
|
||||
'@types/mocha': 10.0.6
|
||||
'@types/node': 18.19.33
|
||||
chai: 4.3.10
|
||||
cross-env: 7.0.3
|
||||
dotenv: 16.4.5
|
||||
mkdirp: 3.0.1
|
||||
mocha: 10.4.0
|
||||
rimraf: 5.0.7
|
||||
ts-node: 10.9.2(@types/node@18.19.33)(typescript@5.4.5)
|
||||
tslib: 2.6.2
|
||||
tsx: 4.11.0
|
||||
typescript: 5.4.5
|
||||
uglify-js: 3.17.4
|
||||
transitivePeerDependencies:
|
||||
- '@swc/core'
|
||||
- '@swc/wasm'
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
file:projects/arm-iotcentral.tgz:
|
||||
resolution: {integrity: sha512-liQqudKElxS9BDABTXg+hbiIBssUx0hntlGZ2dXBaBT3gfaT1NMcKWyobXA3n4ASvEuRK1N+SfWmgMLYPFeYiA==, tarball: file:projects/arm-iotcentral.tgz}
|
||||
name: '@rush-temp/arm-iotcentral'
|
||||
|
|
|
@ -23,4 +23,5 @@ https://docs.microsoft.com/javascript/api/@azure/arm-storageactions?view=azure-n
|
|||
https://docs.microsoft.com/javascript/api/@azure/arm-guestconfiguration?view=azure-node-preview
|
||||
https://docs.microsoft.com/javascript/api/@azure/arm-deviceregistry?view=azure-node-preview
|
||||
https://docs.microsoft.com/javascript/api/@azure/arm-standbypool?view=azure-node-preview
|
||||
https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview
|
||||
https://docs.microsoft.com/javascript/api/@azure/arm-oracledatabase?view=azure-node-preview
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* This is the main configuration file for Rush.
|
||||
* For full documentation, please see https://rushjs.io
|
||||
*/{
|
||||
*/ {
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json",
|
||||
/**
|
||||
* (Required) This specifies the version of the Rush engine to be used in this repo.
|
||||
|
@ -2207,10 +2207,15 @@
|
|||
"projectFolder": "sdk/face/ai-vision-face-rest",
|
||||
"versionPolicyName": "client"
|
||||
},
|
||||
{
|
||||
"packageName": "@azure/arm-informaticadatamanagement",
|
||||
"projectFolder": "sdk/informatica/arm-informaticadatamanagement",
|
||||
"versionPolicyName": "client"
|
||||
},
|
||||
{
|
||||
"packageName": "@azure/arm-oracledatabase",
|
||||
"projectFolder": "sdk/oracledatabase/arm-oracledatabase",
|
||||
"versionPolicyName": "management"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# Release History
|
||||
|
||||
## 1.0.0-beta.1 (2024-05-23)
|
||||
|
||||
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).
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2024 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
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.
|
|
@ -0,0 +1,109 @@
|
|||
# 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://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview) |
|
||||
[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://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
||||
|
||||
```javascript
|
||||
const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
|
||||
|
||||
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
const client = new InformaticaDataManagement(new DefaultAzureCredential(), subscriptionId);
|
||||
|
||||
// For client-side applications running in the browser, use this code instead:
|
||||
// const credential = new InteractiveBrowserCredential({
|
||||
// tenantId: "<YOUR_TENANT_ID>",
|
||||
// clientId: "<YOUR_CLIENT_ID>"
|
||||
// });
|
||||
// const client = new InformaticaDataManagement(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`:
|
||||
|
||||
```javascript
|
||||
const { setLogLevel } = require("@azure/logger");
|
||||
setLogLevel("info");
|
||||
```
|
||||
|
||||
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
|
||||
|
||||
## Next steps
|
||||
|
||||
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
|
||||
|
||||
## Contributing
|
||||
|
||||
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
||||
|
||||
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Finformatica%2Farm-informaticadatamanagement%2FREADME.png)
|
||||
|
||||
[azure_cli]: https://docs.microsoft.com/cli/azure
|
||||
[azure_sub]: https://azure.microsoft.com/free/
|
||||
[azure_sub]: https://azure.microsoft.com/free/
|
||||
[azure_portal]: https://portal.azure.com
|
||||
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
|
||||
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"commit": "6f694078660d96dd07360dd171a7604105c606bf",
|
||||
"readme": "specification/informatica/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\informatica\\resource-manager\\readme.md --use=@autorest/typescript@6.0.22 --generate-sample=true",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.9",
|
||||
"use": "@autorest/typescript@6.0.22"
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
||||
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
|
||||
"docModel": {
|
||||
"enabled": true
|
||||
},
|
||||
"apiReport": {
|
||||
"enabled": true,
|
||||
"reportFolder": "./review"
|
||||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true,
|
||||
"untrimmedFilePath": "",
|
||||
"publicTrimmedFilePath": "./types/arm-informaticadatamanagement.d.ts"
|
||||
},
|
||||
"messages": {
|
||||
"tsdocMessageReporting": {
|
||||
"default": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
},
|
||||
"extractorMessageReporting": {
|
||||
"ae-missing-release-tag": {
|
||||
"logLevel": "none"
|
||||
},
|
||||
"ae-unresolved-link": {
|
||||
"logLevel": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"AssetsRepo": "Azure/azure-sdk-assets",
|
||||
"AssetsRepoPrefixPath": "js",
|
||||
"TagPrefix": "js/informatica/arm-informaticadatamanagement",
|
||||
"Tag": "js/informatica/arm-informaticadatamanagement_09fcfa043a"
|
||||
}
|
|
@ -0,0 +1,118 @@
|
|||
{
|
||||
"name": "@azure/arm-informaticadatamanagement",
|
||||
"sdk-type": "mgmt",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "A generated SDK for InformaticaDataManagement.",
|
||||
"version": "1.0.0-beta.1",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@azure/core-lro": "^2.5.4",
|
||||
"@azure/abort-controller": "^1.0.0",
|
||||
"@azure/core-paging": "^1.2.0",
|
||||
"@azure/core-client": "^1.7.0",
|
||||
"@azure/core-auth": "^1.6.0",
|
||||
"@azure/core-rest-pipeline": "^1.14.0",
|
||||
"tslib": "^2.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist-esm/src/index.js",
|
||||
"types": "./types/arm-informaticadatamanagement.d.ts",
|
||||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"mkdirp": "^3.0.1",
|
||||
"typescript": "~5.4.5",
|
||||
"uglify-js": "^3.4.9",
|
||||
"rimraf": "^5.0.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/identity": "^4.0.1",
|
||||
"@azure-tools/test-recorder": "^3.0.0",
|
||||
"@azure-tools/test-credential": "^1.1.0",
|
||||
"mocha": "^10.0.0",
|
||||
"@types/mocha": "^10.0.0",
|
||||
"tsx": "^4.7.1",
|
||||
"@types/chai": "^4.2.8",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"ts-node": "^10.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*.js",
|
||||
"dist/**/*.js.map",
|
||||
"dist/**/*.d.ts",
|
||||
"dist/**/*.d.ts.map",
|
||||
"dist-esm/**/*.js",
|
||||
"dist-esm/**/*.js.map",
|
||||
"dist-esm/**/*.d.ts",
|
||||
"dist-esm/**/*.d.ts.map",
|
||||
"src/**/*.ts",
|
||||
"README.md",
|
||||
"LICENSE",
|
||||
"tsconfig.json",
|
||||
"review/*",
|
||||
"CHANGELOG.md",
|
||||
"types/*"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
|
||||
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
||||
"prepack": "npm run build",
|
||||
"pack": "npm pack 2>&1",
|
||||
"extract-api": "dev-tool run extract-api",
|
||||
"lint": "echo skipped",
|
||||
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
||||
"build:node": "echo skipped",
|
||||
"build:browser": "echo skipped",
|
||||
"build:test": "echo skipped",
|
||||
"build:samples": "echo skipped.",
|
||||
"check-format": "echo skipped",
|
||||
"execute:samples": "echo skipped",
|
||||
"format": "echo skipped",
|
||||
"test": "npm run integration-test",
|
||||
"test:node": "echo skipped",
|
||||
"test:browser": "echo skipped",
|
||||
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
||||
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
||||
"unit-test:browser": "echo skipped",
|
||||
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
||||
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
||||
"integration-test:browser": "echo skipped"
|
||||
},
|
||||
"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://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,727 @@
|
|||
## 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<string, unknown>;
|
||||
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<Operation>;
|
||||
}
|
||||
|
||||
// @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<SimplePollerLike<OperationState<OrganizationsCreateOrUpdateResponse>, OrganizationsCreateOrUpdateResponse>>;
|
||||
beginCreateOrUpdateAndWait(resourceGroupName: string, organizationName: string, resource: InformaticaOrganizationResource, options?: OrganizationsCreateOrUpdateOptionalParams): Promise<OrganizationsCreateOrUpdateResponse>;
|
||||
beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<OrganizationsDeleteResponse>, OrganizationsDeleteResponse>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationsDeleteOptionalParams): Promise<OrganizationsDeleteResponse>;
|
||||
get(resourceGroupName: string, organizationName: string, options?: OrganizationsGetOptionalParams): Promise<OrganizationsGetResponse>;
|
||||
getAllServerlessRuntimes(resourceGroupName: string, organizationName: string, options?: OrganizationsGetAllServerlessRuntimesOptionalParams): Promise<OrganizationsGetAllServerlessRuntimesResponse>;
|
||||
getServerlessMetadata(resourceGroupName: string, organizationName: string, options?: OrganizationsGetServerlessMetadataOptionalParams): Promise<OrganizationsGetServerlessMetadataResponse>;
|
||||
listByResourceGroup(resourceGroupName: string, options?: OrganizationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<InformaticaOrganizationResource>;
|
||||
listBySubscription(options?: OrganizationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<InformaticaOrganizationResource>;
|
||||
update(resourceGroupName: string, organizationName: string, properties: InformaticaOrganizationResourceUpdate, options?: OrganizationsUpdateOptionalParams): Promise<OrganizationsUpdateResponse>;
|
||||
}
|
||||
|
||||
// @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<SimplePollerLike<OperationState<ServerlessRuntimesCreateOrUpdateResponse>, ServerlessRuntimesCreateOrUpdateResponse>>;
|
||||
beginCreateOrUpdateAndWait(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, resource: InformaticaServerlessRuntimeResource, options?: ServerlessRuntimesCreateOrUpdateOptionalParams): Promise<ServerlessRuntimesCreateOrUpdateResponse>;
|
||||
beginDelete(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<ServerlessRuntimesDeleteResponse>, ServerlessRuntimesDeleteResponse>>;
|
||||
beginDeleteAndWait(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesDeleteOptionalParams): Promise<ServerlessRuntimesDeleteResponse>;
|
||||
checkDependencies(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesCheckDependenciesOptionalParams): Promise<ServerlessRuntimesCheckDependenciesResponse>;
|
||||
get(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesGetOptionalParams): Promise<ServerlessRuntimesGetResponse>;
|
||||
listByInformaticaOrganizationResource(resourceGroupName: string, organizationName: string, options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams): PagedAsyncIterableIterator<InformaticaServerlessRuntimeResource>;
|
||||
serverlessResourceById(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesServerlessResourceByIdOptionalParams): Promise<ServerlessRuntimesServerlessResourceByIdResponse>;
|
||||
startFailedServerlessRuntime(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, options?: ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams): Promise<void>;
|
||||
update(resourceGroupName: string, organizationName: string, serverlessRuntimeName: string, properties: InformaticaServerlessRuntimeResourceUpdate, options?: ServerlessRuntimesUpdateOptionalParams): Promise<ServerlessRuntimesUpdateResponse>;
|
||||
}
|
||||
|
||||
// @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)
|
||||
|
||||
```
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MinimumSet_Gen.json
|
||||
*/
|
||||
async function operationsListMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
operationsList();
|
||||
operationsListMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,118 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaOrganizationResource,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Create a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "C";
|
||||
const resource: InformaticaOrganizationResource = {
|
||||
location: "pamjoudtssthlbhrnfjidr",
|
||||
properties: {
|
||||
companyDetails: {
|
||||
business: "pucosrtjv",
|
||||
companyName: "xszcggknokhw",
|
||||
country: "gwkcpnwyaqc",
|
||||
domain: "utcxetzzpmbvwmjrvphqngvp",
|
||||
numberOfEmployees: 25,
|
||||
officeAddress: "sbttzwyajgdbsvipuiclbzvkcvwyil",
|
||||
},
|
||||
informaticaProperties: {
|
||||
informaticaRegion: "zfqodqpbeflhedypiijdkc",
|
||||
organizationId: "wtdmhlwhkvgqdumaehgfgiqcxgnqpx",
|
||||
organizationName: "nomzbvwe",
|
||||
singleSignOnUrl: "espcbzjhtmgwfdkckhqk",
|
||||
},
|
||||
linkOrganization: { token: "jjfouhoqpumjvrdsfbimgcy" },
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "ovenlecocg",
|
||||
offerDetails: {
|
||||
offerId:
|
||||
"cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty",
|
||||
planId: "jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp",
|
||||
planName:
|
||||
"iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu",
|
||||
publisherId:
|
||||
"zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx",
|
||||
termId:
|
||||
"tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv",
|
||||
termUnit: "gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl",
|
||||
},
|
||||
},
|
||||
provisioningState: "Accepted",
|
||||
userDetails: {
|
||||
emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc",
|
||||
firstName: "appvdclawzfjntdfdftjevlhvzropnxqtnypid",
|
||||
lastName: "nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn",
|
||||
phoneNumber: "fvcjylxlmhdnshsgywnzlyvshu",
|
||||
upn: "undljch",
|
||||
},
|
||||
},
|
||||
tags: { key8430: "cagshqtjlxtqqhdwtchokvxszybp" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Create a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsCreateOrUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "n6v";
|
||||
const resource: InformaticaOrganizationResource = {
|
||||
location: "pamjoudtssthlbhrnfjidr",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsCreateOrUpdate();
|
||||
organizationsCreateOrUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Delete a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsDelete() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Delete a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsDeleteMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsDelete();
|
||||
organizationsDeleteMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource.
|
||||
*
|
||||
* @summary Gets all serverless runtime resources in a given informatica organization resource.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetAllServerlessRuntimes() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "t";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getAllServerlessRuntimes(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource.
|
||||
*
|
||||
* @summary Gets all serverless runtime resources in a given informatica organization resource.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetAllServerlessRuntimesMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "0";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getAllServerlessRuntimes(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsGetAllServerlessRuntimes();
|
||||
organizationsGetAllServerlessRuntimesMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Get a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGet() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "Sg";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Get a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "q";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsGet();
|
||||
organizationsGetMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Metadata of the serverless runtime environment.
|
||||
*
|
||||
* @summary Gets Metadata of the serverless runtime environment.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetServerlessMetadata() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "3_UC";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getServerlessMetadata(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Metadata of the serverless runtime environment.
|
||||
*
|
||||
* @summary Gets Metadata of the serverless runtime environment.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetServerlessMetadataMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "A";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getServerlessMetadata(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsGetServerlessMetadata();
|
||||
organizationsGetServerlessMetadataMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by resource group
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by resource group
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by resource group
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by resource group
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListByResourceGroupMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsListByResourceGroup();
|
||||
organizationsListByResourceGroupMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by subscription ID
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListBySubscription() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by subscription ID
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListBySubscriptionMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsListBySubscription();
|
||||
organizationsListBySubscriptionMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,109 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaOrganizationResourceUpdate,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Update a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const properties: InformaticaOrganizationResourceUpdate = {
|
||||
properties: {
|
||||
companyDetails: {
|
||||
business: "mwqblnruflwpolgbxpqbqneve",
|
||||
companyName: "xkrvbozrjcvappqeeyt",
|
||||
country: "rvlzppgvopcw",
|
||||
domain: "dponvwnrdrnzahcurqssesukbsokdd",
|
||||
numberOfEmployees: 22,
|
||||
officeAddress: "sfcx",
|
||||
},
|
||||
existingResourceId: "uvwlcphdfkqnhrtddpsiacbowcxxo",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "szhyxzgjtssjmlguivepc",
|
||||
offerDetails: {
|
||||
offerId:
|
||||
"idaxbflabvjsippplyenvrpgeydsjxcmyubgukffkcdvlvrtwpdhnvdblxjsldiuswrchsibk",
|
||||
planId:
|
||||
"giihvvnwdwzkfqrhkpqzbgfotzyixnsvmxzauseebillhslauglzfxzvzvts",
|
||||
planName:
|
||||
"tfqjenotaewzdeerliteqxdawuqxhwdzbtiiimsaedrlsnbdoonnloakjtvnwhhrcyxxsgoachguthqvlahpjyofpoqpfacfmiaauawazkmxkjgvktbptojknzojtjrfzvbbjjkvstabqyaczxinijhoxrjukftsagpwgsvpmczopztmplipyufhuaumfx",
|
||||
publisherId:
|
||||
"ktzfghsyjqbsswhltoaemgotmnorhdogvkaxplutbjjqzuepxizliynyakersobagvpwvpzwjtjjxigsqgcyqaahaxdijghnexliofhfjlqzjmmbvrhcvjxdodnexxizbgfhjopbwzjojxsluasnwwsgcajefglbcvzpaeblanhmurcculndtfwnfjyxol",
|
||||
termId:
|
||||
"eolmwogtgpdncqoigqcdomupwummaicwvdxgbskpdsmjizdfbdgbxbuekcpwmenqzbhqxpdnjtup",
|
||||
termUnit: "nykqoplazujcwmfldntifjqrnx",
|
||||
},
|
||||
},
|
||||
userDetails: {
|
||||
emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc",
|
||||
firstName: "qguqrmanyupoi",
|
||||
lastName: "ugzg",
|
||||
phoneNumber: "uxa",
|
||||
upn: "viwjrkn",
|
||||
},
|
||||
},
|
||||
tags: { key1918: "fbjvtuvzsghpl" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Update a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "-";
|
||||
const properties: InformaticaOrganizationResourceUpdate = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsUpdate();
|
||||
organizationsUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Checks all dependencies for a serverless runtime resource
|
||||
*
|
||||
* @summary Checks all dependencies for a serverless runtime resource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCheckDependencies() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "3P";
|
||||
const serverlessRuntimeName = "M";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.checkDependencies(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Checks all dependencies for a serverless runtime resource
|
||||
*
|
||||
* @summary Checks all dependencies for a serverless runtime resource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCheckDependenciesMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const serverlessRuntimeName = "_2_";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.checkDependencies(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesCheckDependencies();
|
||||
serverlessRuntimesCheckDependenciesMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaServerlessRuntimeResource,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Create a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "__C";
|
||||
const serverlessRuntimeName = "0j-__";
|
||||
const resource: InformaticaServerlessRuntimeResource = {
|
||||
properties: {
|
||||
description: "mqkaenjmxakvzrwmirelmhgiedto",
|
||||
advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }],
|
||||
applicationType: "CDI",
|
||||
computeUnits: "bsctukmndvowse",
|
||||
executionTimeout: "ruiougpypny",
|
||||
platform: "AZURE",
|
||||
provisioningState: "Accepted",
|
||||
serverlessAccountLocation: "bkxdfopapbqucyhduewrubjpaei",
|
||||
serverlessRuntimeConfig: {
|
||||
cdiConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
cdieConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
},
|
||||
serverlessRuntimeNetworkProfile: {
|
||||
networkInterfaceConfiguration: {
|
||||
subnetId: "s",
|
||||
vnetId: "uaqjvtubxccjs",
|
||||
vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0",
|
||||
},
|
||||
},
|
||||
serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }],
|
||||
serverlessRuntimeUserContextProperties: { userContextToken: "oludf" },
|
||||
supplementaryFileLocation: "zmlqtkncwgqhhupsnqluumz",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Create a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCreateOrUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "-4Z__7";
|
||||
const serverlessRuntimeName = "J";
|
||||
const resource: InformaticaServerlessRuntimeResource = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesCreateOrUpdate();
|
||||
serverlessRuntimesCreateOrUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Delete a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesDelete() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "orgName";
|
||||
const serverlessRuntimeName = "serverlessRuntimeName";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesDelete();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Get a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesGet() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "e3Y";
|
||||
const serverlessRuntimeName = "48-";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Get a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesGetMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "YC";
|
||||
const serverlessRuntimeName = "___";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesGet();
|
||||
serverlessRuntimesGetMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource
|
||||
*
|
||||
* @summary List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesListByInformaticaOrganizationResource() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "orgName";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.serverlessRuntimes.listByInformaticaOrganizationResource(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesListByInformaticaOrganizationResource();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns a serverless runtime resource by ID
|
||||
*
|
||||
* @summary Returns a serverless runtime resource by ID
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesServerlessResourceById() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_RD_R";
|
||||
const serverlessRuntimeName = "serverlessRuntimeName159";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.serverlessResourceById(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesServerlessResourceById();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Starts a failed runtime resource
|
||||
*
|
||||
* @summary Starts a failed runtime resource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesStartFailedServerlessRuntime() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "9M4";
|
||||
const serverlessRuntimeName = "-25-G_";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.startFailedServerlessRuntime(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesStartFailedServerlessRuntime();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,133 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaServerlessRuntimeResourceUpdate,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Update a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "W5";
|
||||
const serverlessRuntimeName = "t_";
|
||||
const properties: InformaticaServerlessRuntimeResourceUpdate = {
|
||||
properties: {
|
||||
description: "ocprslpljoikxyduackzqnkuhyzrh",
|
||||
advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }],
|
||||
applicationType: "CDI",
|
||||
computeUnits: "uncwbpu",
|
||||
executionTimeout: "tjyfytuywriabt",
|
||||
platform: "AZURE",
|
||||
serverlessAccountLocation: "goaugkyfanqfnvcmntreibqrswfpis",
|
||||
serverlessRuntimeConfig: {
|
||||
cdiConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
cdieConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
},
|
||||
serverlessRuntimeNetworkProfile: {
|
||||
networkInterfaceConfiguration: {
|
||||
subnetId: "dctcuhgttxhcarwcrgdmsfwksyrzj",
|
||||
vnetId: "tnsqwwoxydeqqffumdnxlkkb",
|
||||
vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0",
|
||||
},
|
||||
},
|
||||
serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }],
|
||||
serverlessRuntimeUserContextProperties: {
|
||||
userContextToken: "ctgebtvjhwh",
|
||||
},
|
||||
supplementaryFileLocation: "csxaqzpxu",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Update a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_f--";
|
||||
const serverlessRuntimeName = "8Zr__";
|
||||
const properties: InformaticaServerlessRuntimeResourceUpdate = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesUpdate();
|
||||
serverlessRuntimesUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,82 @@
|
|||
# client library samples for JavaScript (Beta)
|
||||
|
||||
These sample programs show how to use the JavaScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json |
|
||||
| [organizationsCreateOrUpdateSample.js][organizationscreateorupdatesample] | Create a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json |
|
||||
| [organizationsDeleteSample.js][organizationsdeletesample] | Delete a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json |
|
||||
| [organizationsGetAllServerlessRuntimesSample.js][organizationsgetallserverlessruntimessample] | Gets all serverless runtime resources in a given informatica organization resource. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json |
|
||||
| [organizationsGetSample.js][organizationsgetsample] | Get a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json |
|
||||
| [organizationsGetServerlessMetadataSample.js][organizationsgetserverlessmetadatasample] | Gets Metadata of the serverless runtime environment. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json |
|
||||
| [organizationsListByResourceGroupSample.js][organizationslistbyresourcegroupsample] | List InformaticaOrganizationResource resources by resource group x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json |
|
||||
| [organizationsListBySubscriptionSample.js][organizationslistbysubscriptionsample] | List InformaticaOrganizationResource resources by subscription ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json |
|
||||
| [organizationsUpdateSample.js][organizationsupdatesample] | Update a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesCheckDependenciesSample.js][serverlessruntimescheckdependenciessample] | Checks all dependencies for a serverless runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesCreateOrUpdateSample.js][serverlessruntimescreateorupdatesample] | Create a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesDeleteSample.js][serverlessruntimesdeletesample] | Delete a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesGetSample.js][serverlessruntimesgetsample] | Get a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesListByInformaticaOrganizationResourceSample.js][serverlessruntimeslistbyinformaticaorganizationresourcesample] | List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesServerlessResourceByIdSample.js][serverlessruntimesserverlessresourcebyidsample] | Returns a serverless runtime resource by ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesStartFailedServerlessRuntimeSample.js][serverlessruntimesstartfailedserverlessruntimesample] | Starts a failed runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesUpdateSample.js][serverlessruntimesupdatesample] | Update a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule).
|
||||
|
||||
You need [an Azure subscription][freesub] to run these sample programs.
|
||||
|
||||
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
|
||||
|
||||
Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
|
||||
|
||||
## Setup
|
||||
|
||||
To run the samples using the published version of the package:
|
||||
|
||||
1. Install the dependencies using `npm`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
|
||||
|
||||
3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
|
||||
|
||||
```bash
|
||||
node operationsListSample.js
|
||||
```
|
||||
|
||||
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
|
||||
|
||||
```bash
|
||||
npx cross-env INFORMATICA_SUBSCRIPTION_ID="<informatica subscription id>" node operationsListSample.js
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/operationsListSample.js
|
||||
[organizationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsCreateOrUpdateSample.js
|
||||
[organizationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsDeleteSample.js
|
||||
[organizationsgetallserverlessruntimessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetAllServerlessRuntimesSample.js
|
||||
[organizationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetSample.js
|
||||
[organizationsgetserverlessmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsGetServerlessMetadataSample.js
|
||||
[organizationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListByResourceGroupSample.js
|
||||
[organizationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsListBySubscriptionSample.js
|
||||
[organizationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/organizationsUpdateSample.js
|
||||
[serverlessruntimescheckdependenciessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCheckDependenciesSample.js
|
||||
[serverlessruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesCreateOrUpdateSample.js
|
||||
[serverlessruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesDeleteSample.js
|
||||
[serverlessruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesGetSample.js
|
||||
[serverlessruntimeslistbyinformaticaorganizationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesListByInformaticaOrganizationResourceSample.js
|
||||
[serverlessruntimesserverlessresourcebyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesServerlessResourceByIdSample.js
|
||||
[serverlessruntimesstartfailedserverlessruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesStartFailedServerlessRuntimeSample.js
|
||||
[serverlessruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/javascript/serverlessRuntimesUpdateSample.js
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement/README.md
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
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);
|
|
@ -0,0 +1,109 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Create a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "C";
|
||||
const resource = {
|
||||
location: "pamjoudtssthlbhrnfjidr",
|
||||
properties: {
|
||||
companyDetails: {
|
||||
business: "pucosrtjv",
|
||||
companyName: "xszcggknokhw",
|
||||
country: "gwkcpnwyaqc",
|
||||
domain: "utcxetzzpmbvwmjrvphqngvp",
|
||||
numberOfEmployees: 25,
|
||||
officeAddress: "sbttzwyajgdbsvipuiclbzvkcvwyil",
|
||||
},
|
||||
informaticaProperties: {
|
||||
informaticaRegion: "zfqodqpbeflhedypiijdkc",
|
||||
organizationId: "wtdmhlwhkvgqdumaehgfgiqcxgnqpx",
|
||||
organizationName: "nomzbvwe",
|
||||
singleSignOnUrl: "espcbzjhtmgwfdkckhqk",
|
||||
},
|
||||
linkOrganization: { token: "jjfouhoqpumjvrdsfbimgcy" },
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "ovenlecocg",
|
||||
offerDetails: {
|
||||
offerId:
|
||||
"cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty",
|
||||
planId: "jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp",
|
||||
planName:
|
||||
"iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu",
|
||||
publisherId:
|
||||
"zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx",
|
||||
termId:
|
||||
"tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv",
|
||||
termUnit: "gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl",
|
||||
},
|
||||
},
|
||||
provisioningState: "Accepted",
|
||||
userDetails: {
|
||||
emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc",
|
||||
firstName: "appvdclawzfjntdfdftjevlhvzropnxqtnypid",
|
||||
lastName: "nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn",
|
||||
phoneNumber: "fvcjylxlmhdnshsgywnzlyvshu",
|
||||
upn: "undljch",
|
||||
},
|
||||
},
|
||||
tags: { key8430: "cagshqtjlxtqqhdwtchokvxszybp" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Create a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsCreateOrUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "n6v";
|
||||
const resource = {
|
||||
location: "pamjoudtssthlbhrnfjidr",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsCreateOrUpdate();
|
||||
organizationsCreateOrUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { 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);
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code 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);
|
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { 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);
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code 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);
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
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);
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
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);
|
|
@ -0,0 +1,89 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Update a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const properties = {
|
||||
properties: {
|
||||
companyDetails: {
|
||||
business: "mwqblnruflwpolgbxpqbqneve",
|
||||
companyName: "xkrvbozrjcvappqeeyt",
|
||||
country: "rvlzppgvopcw",
|
||||
domain: "dponvwnrdrnzahcurqssesukbsokdd",
|
||||
numberOfEmployees: 22,
|
||||
officeAddress: "sfcx",
|
||||
},
|
||||
existingResourceId: "uvwlcphdfkqnhrtddpsiacbowcxxo",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "szhyxzgjtssjmlguivepc",
|
||||
offerDetails: {
|
||||
offerId: "idaxbflabvjsippplyenvrpgeydsjxcmyubgukffkcdvlvrtwpdhnvdblxjsldiuswrchsibk",
|
||||
planId: "giihvvnwdwzkfqrhkpqzbgfotzyixnsvmxzauseebillhslauglzfxzvzvts",
|
||||
planName:
|
||||
"tfqjenotaewzdeerliteqxdawuqxhwdzbtiiimsaedrlsnbdoonnloakjtvnwhhrcyxxsgoachguthqvlahpjyofpoqpfacfmiaauawazkmxkjgvktbptojknzojtjrfzvbbjjkvstabqyaczxinijhoxrjukftsagpwgsvpmczopztmplipyufhuaumfx",
|
||||
publisherId:
|
||||
"ktzfghsyjqbsswhltoaemgotmnorhdogvkaxplutbjjqzuepxizliynyakersobagvpwvpzwjtjjxigsqgcyqaahaxdijghnexliofhfjlqzjmmbvrhcvjxdodnexxizbgfhjopbwzjojxsluasnwwsgcajefglbcvzpaeblanhmurcculndtfwnfjyxol",
|
||||
termId: "eolmwogtgpdncqoigqcdomupwummaicwvdxgbskpdsmjizdfbdgbxbuekcpwmenqzbhqxpdnjtup",
|
||||
termUnit: "nykqoplazujcwmfldntifjqrnx",
|
||||
},
|
||||
},
|
||||
userDetails: {
|
||||
emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc",
|
||||
firstName: "qguqrmanyupoi",
|
||||
lastName: "ugzg",
|
||||
phoneNumber: "uxa",
|
||||
upn: "viwjrkn",
|
||||
},
|
||||
},
|
||||
tags: { key1918: "fbjvtuvzsghpl" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.update(resourceGroupName, organizationName, properties);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Update a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "-";
|
||||
const properties = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.update(resourceGroupName, organizationName, properties);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsUpdate();
|
||||
organizationsUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"name": "@azure-samples/arm-informaticadatamanagement-js-beta",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": " client library samples for JavaScript (Beta)",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Azure/azure-sdk-for-js.git",
|
||||
"directory": "sdk/informatica/arm-informaticadatamanagement"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement",
|
||||
"dependencies": {
|
||||
"@azure/arm-informaticadatamanagement": "next",
|
||||
"dotenv": "latest",
|
||||
"@azure/identity": "^4.0.1"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code 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);
|
|
@ -0,0 +1,123 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Create a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "__C";
|
||||
const serverlessRuntimeName = "0j-__";
|
||||
const resource = {
|
||||
properties: {
|
||||
description: "mqkaenjmxakvzrwmirelmhgiedto",
|
||||
advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }],
|
||||
applicationType: "CDI",
|
||||
computeUnits: "bsctukmndvowse",
|
||||
executionTimeout: "ruiougpypny",
|
||||
platform: "AZURE",
|
||||
provisioningState: "Accepted",
|
||||
serverlessAccountLocation: "bkxdfopapbqucyhduewrubjpaei",
|
||||
serverlessRuntimeConfig: {
|
||||
cdiConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
cdieConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
},
|
||||
serverlessRuntimeNetworkProfile: {
|
||||
networkInterfaceConfiguration: {
|
||||
subnetId: "s",
|
||||
vnetId: "uaqjvtubxccjs",
|
||||
vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0",
|
||||
},
|
||||
},
|
||||
serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }],
|
||||
serverlessRuntimeUserContextProperties: { userContextToken: "oludf" },
|
||||
supplementaryFileLocation: "zmlqtkncwgqhhupsnqluumz",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Create a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCreateOrUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "-4Z__7";
|
||||
const serverlessRuntimeName = "J";
|
||||
const resource = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesCreateOrUpdate();
|
||||
serverlessRuntimesCreateOrUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { 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);
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code 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);
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { 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);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { 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);
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { 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);
|
|
@ -0,0 +1,124 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
const { InformaticaDataManagement } = require("@azure/arm-informaticadatamanagement");
|
||||
const { DefaultAzureCredential } = require("@azure/identity");
|
||||
require("dotenv").config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Update a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "W5";
|
||||
const serverlessRuntimeName = "t_";
|
||||
const properties = {
|
||||
properties: {
|
||||
description: "ocprslpljoikxyduackzqnkuhyzrh",
|
||||
advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }],
|
||||
applicationType: "CDI",
|
||||
computeUnits: "uncwbpu",
|
||||
executionTimeout: "tjyfytuywriabt",
|
||||
platform: "AZURE",
|
||||
serverlessAccountLocation: "goaugkyfanqfnvcmntreibqrswfpis",
|
||||
serverlessRuntimeConfig: {
|
||||
cdiConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
cdieConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
},
|
||||
serverlessRuntimeNetworkProfile: {
|
||||
networkInterfaceConfiguration: {
|
||||
subnetId: "dctcuhgttxhcarwcrgdmsfwksyrzj",
|
||||
vnetId: "tnsqwwoxydeqqffumdnxlkkb",
|
||||
vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0",
|
||||
},
|
||||
},
|
||||
serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }],
|
||||
serverlessRuntimeUserContextProperties: {
|
||||
userContextToken: "ctgebtvjhwh",
|
||||
},
|
||||
supplementaryFileLocation: "csxaqzpxu",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Update a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] || "3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName = process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_f--";
|
||||
const serverlessRuntimeName = "8Zr__";
|
||||
const properties = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesUpdate();
|
||||
serverlessRuntimesUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,95 @@
|
|||
# client library samples for TypeScript (Beta)
|
||||
|
||||
These sample programs show how to use the TypeScript client libraries for in some common scenarios.
|
||||
|
||||
| **File Name** | **Description** |
|
||||
| --------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json |
|
||||
| [organizationsCreateOrUpdateSample.ts][organizationscreateorupdatesample] | Create a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json |
|
||||
| [organizationsDeleteSample.ts][organizationsdeletesample] | Delete a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json |
|
||||
| [organizationsGetAllServerlessRuntimesSample.ts][organizationsgetallserverlessruntimessample] | Gets all serverless runtime resources in a given informatica organization resource. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json |
|
||||
| [organizationsGetSample.ts][organizationsgetsample] | Get a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json |
|
||||
| [organizationsGetServerlessMetadataSample.ts][organizationsgetserverlessmetadatasample] | Gets Metadata of the serverless runtime environment. x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json |
|
||||
| [organizationsListByResourceGroupSample.ts][organizationslistbyresourcegroupsample] | List InformaticaOrganizationResource resources by resource group x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json |
|
||||
| [organizationsListBySubscriptionSample.ts][organizationslistbysubscriptionsample] | List InformaticaOrganizationResource resources by subscription ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json |
|
||||
| [organizationsUpdateSample.ts][organizationsupdatesample] | Update a InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesCheckDependenciesSample.ts][serverlessruntimescheckdependenciessample] | Checks all dependencies for a serverless runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesCreateOrUpdateSample.ts][serverlessruntimescreateorupdatesample] | Create a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesDeleteSample.ts][serverlessruntimesdeletesample] | Delete a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesGetSample.ts][serverlessruntimesgetsample] | Get a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesListByInformaticaOrganizationResourceSample.ts][serverlessruntimeslistbyinformaticaorganizationresourcesample] | List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesServerlessResourceByIdSample.ts][serverlessruntimesserverlessresourcebyidsample] | Returns a serverless runtime resource by ID x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesStartFailedServerlessRuntimeSample.ts][serverlessruntimesstartfailedserverlessruntimesample] | Starts a failed runtime resource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json |
|
||||
| [serverlessRuntimesUpdateSample.ts][serverlessruntimesupdatesample] | Update a InformaticaServerlessRuntimeResource x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json |
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule).
|
||||
|
||||
Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:
|
||||
|
||||
```bash
|
||||
npm install -g typescript
|
||||
```
|
||||
|
||||
You need [an Azure subscription][freesub] to run these sample programs.
|
||||
|
||||
Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
|
||||
|
||||
Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
|
||||
|
||||
## Setup
|
||||
|
||||
To run the samples using the published version of the package:
|
||||
|
||||
1. Install the dependencies using `npm`:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Compile the samples:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
|
||||
|
||||
4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
|
||||
|
||||
```bash
|
||||
node dist/operationsListSample.js
|
||||
```
|
||||
|
||||
Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
|
||||
|
||||
```bash
|
||||
npx cross-env INFORMATICA_SUBSCRIPTION_ID="<informatica subscription id>" node dist/operationsListSample.js
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
|
||||
|
||||
[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/operationsListSample.ts
|
||||
[organizationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsCreateOrUpdateSample.ts
|
||||
[organizationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsDeleteSample.ts
|
||||
[organizationsgetallserverlessruntimessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetAllServerlessRuntimesSample.ts
|
||||
[organizationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetSample.ts
|
||||
[organizationsgetserverlessmetadatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsGetServerlessMetadataSample.ts
|
||||
[organizationslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListByResourceGroupSample.ts
|
||||
[organizationslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsListBySubscriptionSample.ts
|
||||
[organizationsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/organizationsUpdateSample.ts
|
||||
[serverlessruntimescheckdependenciessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCheckDependenciesSample.ts
|
||||
[serverlessruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesCreateOrUpdateSample.ts
|
||||
[serverlessruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesDeleteSample.ts
|
||||
[serverlessruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesGetSample.ts
|
||||
[serverlessruntimeslistbyinformaticaorganizationresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesListByInformaticaOrganizationResourceSample.ts
|
||||
[serverlessruntimesserverlessresourcebyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesServerlessResourceByIdSample.ts
|
||||
[serverlessruntimesstartfailedserverlessruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesStartFailedServerlessRuntimeSample.ts
|
||||
[serverlessruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/informatica/arm-informaticadatamanagement/samples/v1-beta/typescript/src/serverlessRuntimesUpdateSample.ts
|
||||
[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-informaticadatamanagement?view=azure-node-preview
|
||||
[freesub]: https://azure.microsoft.com/free/
|
||||
[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement/README.md
|
||||
[typescript]: https://www.typescriptlang.org/docs/home.html
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "@azure-samples/arm-informaticadatamanagement-ts-beta",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": " client library samples for TypeScript (Beta)",
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"prebuild": "rimraf dist/"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Azure/azure-sdk-for-js.git",
|
||||
"directory": "sdk/informatica/arm-informaticadatamanagement"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
"azure",
|
||||
"typescript",
|
||||
"browser",
|
||||
"isomorphic"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/informatica/arm-informaticadatamanagement",
|
||||
"dependencies": {
|
||||
"@azure/arm-informaticadatamanagement": "next",
|
||||
"dotenv": "latest",
|
||||
"@azure/identity": "^4.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^18.0.0",
|
||||
"typescript": "~5.4.5",
|
||||
"rimraf": "latest"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
# App registration secret for AAD authentication
|
||||
AZURE_CLIENT_SECRET=
|
||||
AZURE_CLIENT_ID=
|
||||
AZURE_TENANT_ID=
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MaximumSet_Gen.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List the operations for the provider
|
||||
*
|
||||
* @summary List the operations for the provider
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Operations_List_MinimumSet_Gen.json
|
||||
*/
|
||||
async function operationsListMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
operationsList();
|
||||
operationsListMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,118 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaOrganizationResource,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Create a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "C";
|
||||
const resource: InformaticaOrganizationResource = {
|
||||
location: "pamjoudtssthlbhrnfjidr",
|
||||
properties: {
|
||||
companyDetails: {
|
||||
business: "pucosrtjv",
|
||||
companyName: "xszcggknokhw",
|
||||
country: "gwkcpnwyaqc",
|
||||
domain: "utcxetzzpmbvwmjrvphqngvp",
|
||||
numberOfEmployees: 25,
|
||||
officeAddress: "sbttzwyajgdbsvipuiclbzvkcvwyil",
|
||||
},
|
||||
informaticaProperties: {
|
||||
informaticaRegion: "zfqodqpbeflhedypiijdkc",
|
||||
organizationId: "wtdmhlwhkvgqdumaehgfgiqcxgnqpx",
|
||||
organizationName: "nomzbvwe",
|
||||
singleSignOnUrl: "espcbzjhtmgwfdkckhqk",
|
||||
},
|
||||
linkOrganization: { token: "jjfouhoqpumjvrdsfbimgcy" },
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "ovenlecocg",
|
||||
offerDetails: {
|
||||
offerId:
|
||||
"cwswcfwmzhjcoksmueukegwaptvpcmbfyvixfhvgwnjyblqivqdkkwkunkgimiopwwkvgnwclmajhuty",
|
||||
planId: "jfnemevyivtlxhectiutdavdgfyidolivuojumdzckp",
|
||||
planName:
|
||||
"iaoxgaitteuoqgujkgxbdgryaobtkjjecuvchwutntrvmuorikrbqqegmelenbewhakiysprrnovjixyxrikscaptrbapbdspu",
|
||||
publisherId:
|
||||
"zajxpfacudwongxjvnnuhhpygmnydchgowjccyuzsjonegmqxcqqpnzafanggowfqdixnnutyfvmvwrkx",
|
||||
termId:
|
||||
"tcvvsxdjnjlfmjhmvwklptdmxetnzydxyuhfqchoubmtoeqbchnfxoxqzezlgpxdnzyvzgkynjxzzgetkqccxvpzahxattluqdipvbdktqmndfefitzuifqjpschzlbvixnvznkmmgjwvkplfhemnapsewgqxggdzdokryhv",
|
||||
termUnit: "gjwmgevrblbosuogsvfspsgspetbnxaygkbelvadpgwiywl",
|
||||
},
|
||||
},
|
||||
provisioningState: "Accepted",
|
||||
userDetails: {
|
||||
emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc",
|
||||
firstName: "appvdclawzfjntdfdftjevlhvzropnxqtnypid",
|
||||
lastName: "nzirbvzmkxtbrlamyatlcszebxgcyncxoascojsmacwvjsjvn",
|
||||
phoneNumber: "fvcjylxlmhdnshsgywnzlyvshu",
|
||||
upn: "undljch",
|
||||
},
|
||||
},
|
||||
tags: { key8430: "cagshqtjlxtqqhdwtchokvxszybp" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Create a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsCreateOrUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "n6v";
|
||||
const resource: InformaticaOrganizationResource = {
|
||||
location: "pamjoudtssthlbhrnfjidr",
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsCreateOrUpdate();
|
||||
organizationsCreateOrUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Delete a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsDelete() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Delete a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Delete_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsDeleteMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsDelete();
|
||||
organizationsDeleteMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource.
|
||||
*
|
||||
* @summary Gets all serverless runtime resources in a given informatica organization resource.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetAllServerlessRuntimes() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "t";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getAllServerlessRuntimes(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets all serverless runtime resources in a given informatica organization resource.
|
||||
*
|
||||
* @summary Gets all serverless runtime resources in a given informatica organization resource.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetAllServerlessRuntimes_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetAllServerlessRuntimesMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "0";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getAllServerlessRuntimes(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsGetAllServerlessRuntimes();
|
||||
organizationsGetAllServerlessRuntimesMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Get a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGet() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "Sg";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Get a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "q";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsGet();
|
||||
organizationsGetMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Metadata of the serverless runtime environment.
|
||||
*
|
||||
* @summary Gets Metadata of the serverless runtime environment.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetServerlessMetadata() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "3_UC";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getServerlessMetadata(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets Metadata of the serverless runtime environment.
|
||||
*
|
||||
* @summary Gets Metadata of the serverless runtime environment.
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_GetServerlessMetadata_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsGetServerlessMetadataMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "A";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.getServerlessMetadata(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsGetServerlessMetadata();
|
||||
organizationsGetServerlessMetadataMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by resource group
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by resource group
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListByResourceGroup() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by resource group
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by resource group
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListByResourceGroup_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListByResourceGroupMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listByResourceGroup(
|
||||
resourceGroupName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsListByResourceGroup();
|
||||
organizationsListByResourceGroupMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by subscription ID
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListBySubscription() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaOrganizationResource resources by subscription ID
|
||||
*
|
||||
* @summary List InformaticaOrganizationResource resources by subscription ID
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_ListBySubscription_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsListBySubscriptionMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.organizations.listBySubscription()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsListBySubscription();
|
||||
organizationsListBySubscriptionMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,109 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaOrganizationResourceUpdate,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Update a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function organizationsUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const properties: InformaticaOrganizationResourceUpdate = {
|
||||
properties: {
|
||||
companyDetails: {
|
||||
business: "mwqblnruflwpolgbxpqbqneve",
|
||||
companyName: "xkrvbozrjcvappqeeyt",
|
||||
country: "rvlzppgvopcw",
|
||||
domain: "dponvwnrdrnzahcurqssesukbsokdd",
|
||||
numberOfEmployees: 22,
|
||||
officeAddress: "sfcx",
|
||||
},
|
||||
existingResourceId: "uvwlcphdfkqnhrtddpsiacbowcxxo",
|
||||
marketplaceDetails: {
|
||||
marketplaceSubscriptionId: "szhyxzgjtssjmlguivepc",
|
||||
offerDetails: {
|
||||
offerId:
|
||||
"idaxbflabvjsippplyenvrpgeydsjxcmyubgukffkcdvlvrtwpdhnvdblxjsldiuswrchsibk",
|
||||
planId:
|
||||
"giihvvnwdwzkfqrhkpqzbgfotzyixnsvmxzauseebillhslauglzfxzvzvts",
|
||||
planName:
|
||||
"tfqjenotaewzdeerliteqxdawuqxhwdzbtiiimsaedrlsnbdoonnloakjtvnwhhrcyxxsgoachguthqvlahpjyofpoqpfacfmiaauawazkmxkjgvktbptojknzojtjrfzvbbjjkvstabqyaczxinijhoxrjukftsagpwgsvpmczopztmplipyufhuaumfx",
|
||||
publisherId:
|
||||
"ktzfghsyjqbsswhltoaemgotmnorhdogvkaxplutbjjqzuepxizliynyakersobagvpwvpzwjtjjxigsqgcyqaahaxdijghnexliofhfjlqzjmmbvrhcvjxdodnexxizbgfhjopbwzjojxsluasnwwsgcajefglbcvzpaeblanhmurcculndtfwnfjyxol",
|
||||
termId:
|
||||
"eolmwogtgpdncqoigqcdomupwummaicwvdxgbskpdsmjizdfbdgbxbuekcpwmenqzbhqxpdnjtup",
|
||||
termUnit: "nykqoplazujcwmfldntifjqrnx",
|
||||
},
|
||||
},
|
||||
userDetails: {
|
||||
emailAddress: "7_-46@13D--3.m-4x-.11.c-9-.DHLYFc",
|
||||
firstName: "qguqrmanyupoi",
|
||||
lastName: "ugzg",
|
||||
phoneNumber: "uxa",
|
||||
upn: "viwjrkn",
|
||||
},
|
||||
},
|
||||
tags: { key1918: "fbjvtuvzsghpl" },
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaOrganizationResource
|
||||
*
|
||||
* @summary Update a InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/Organizations_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function organizationsUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "-";
|
||||
const properties: InformaticaOrganizationResourceUpdate = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.organizations.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
organizationsUpdate();
|
||||
organizationsUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Checks all dependencies for a serverless runtime resource
|
||||
*
|
||||
* @summary Checks all dependencies for a serverless runtime resource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCheckDependencies() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "3P";
|
||||
const serverlessRuntimeName = "M";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.checkDependencies(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Checks all dependencies for a serverless runtime resource
|
||||
*
|
||||
* @summary Checks all dependencies for a serverless runtime resource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CheckDependencies_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCheckDependenciesMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_-";
|
||||
const serverlessRuntimeName = "_2_";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.checkDependencies(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesCheckDependencies();
|
||||
serverlessRuntimesCheckDependenciesMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaServerlessRuntimeResource,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Create a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCreateOrUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "__C";
|
||||
const serverlessRuntimeName = "0j-__";
|
||||
const resource: InformaticaServerlessRuntimeResource = {
|
||||
properties: {
|
||||
description: "mqkaenjmxakvzrwmirelmhgiedto",
|
||||
advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }],
|
||||
applicationType: "CDI",
|
||||
computeUnits: "bsctukmndvowse",
|
||||
executionTimeout: "ruiougpypny",
|
||||
platform: "AZURE",
|
||||
provisioningState: "Accepted",
|
||||
serverlessAccountLocation: "bkxdfopapbqucyhduewrubjpaei",
|
||||
serverlessRuntimeConfig: {
|
||||
cdiConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
cdieConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
},
|
||||
serverlessRuntimeNetworkProfile: {
|
||||
networkInterfaceConfiguration: {
|
||||
subnetId: "s",
|
||||
vnetId: "uaqjvtubxccjs",
|
||||
vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0",
|
||||
},
|
||||
},
|
||||
serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }],
|
||||
serverlessRuntimeUserContextProperties: { userContextToken: "oludf" },
|
||||
supplementaryFileLocation: "zmlqtkncwgqhhupsnqluumz",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Create a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Create a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_CreateOrUpdate_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesCreateOrUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "-4Z__7";
|
||||
const serverlessRuntimeName = "J";
|
||||
const resource: InformaticaServerlessRuntimeResource = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginCreateOrUpdateAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
resource,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesCreateOrUpdate();
|
||||
serverlessRuntimesCreateOrUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Delete a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Delete a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Delete_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesDelete() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "orgName";
|
||||
const serverlessRuntimeName = "serverlessRuntimeName";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.beginDeleteAndWait(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesDelete();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Get a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesGet() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "e3Y";
|
||||
const serverlessRuntimeName = "48-";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Get a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Get a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Get_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesGetMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "YC";
|
||||
const serverlessRuntimeName = "___";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.get(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesGet();
|
||||
serverlessRuntimesGetMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource
|
||||
*
|
||||
* @summary List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ListByInformaticaOrganizationResource_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesListByInformaticaOrganizationResource() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "orgName";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.serverlessRuntimes.listByInformaticaOrganizationResource(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesListByInformaticaOrganizationResource();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns a serverless runtime resource by ID
|
||||
*
|
||||
* @summary Returns a serverless runtime resource by ID
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_ServerlessResourceById_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesServerlessResourceById() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_RD_R";
|
||||
const serverlessRuntimeName = "serverlessRuntimeName159";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.serverlessResourceById(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesServerlessResourceById();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,45 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { InformaticaDataManagement } from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Starts a failed runtime resource
|
||||
*
|
||||
* @summary Starts a failed runtime resource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_StartFailedServerlessRuntime_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesStartFailedServerlessRuntime() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "9M4";
|
||||
const serverlessRuntimeName = "-25-G_";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.startFailedServerlessRuntime(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesStartFailedServerlessRuntime();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,133 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
InformaticaServerlessRuntimeResourceUpdate,
|
||||
InformaticaDataManagement,
|
||||
} from "@azure/arm-informaticadatamanagement";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
import * as dotenv from "dotenv";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Update a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MaximumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesUpdate() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "W5";
|
||||
const serverlessRuntimeName = "t_";
|
||||
const properties: InformaticaServerlessRuntimeResourceUpdate = {
|
||||
properties: {
|
||||
description: "ocprslpljoikxyduackzqnkuhyzrh",
|
||||
advancedCustomProperties: [{ key: "qcmc", value: "unraxmnohdmvutt" }],
|
||||
applicationType: "CDI",
|
||||
computeUnits: "uncwbpu",
|
||||
executionTimeout: "tjyfytuywriabt",
|
||||
platform: "AZURE",
|
||||
serverlessAccountLocation: "goaugkyfanqfnvcmntreibqrswfpis",
|
||||
serverlessRuntimeConfig: {
|
||||
cdiConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
cdieConfigProps: [
|
||||
{
|
||||
applicationConfigs: [
|
||||
{
|
||||
name: "upfvjrqcrwwedfujkmsodeinw",
|
||||
type: "lw",
|
||||
customized: "j",
|
||||
defaultValue: "zvgkqwmi",
|
||||
platform: "dixfyeobngivyvf",
|
||||
value: "mozgsetpwjmtyl",
|
||||
},
|
||||
],
|
||||
engineName: "hngsdqvtjdhwqlbqfotipaiwjuys",
|
||||
engineVersion: "zlrlbg",
|
||||
},
|
||||
],
|
||||
},
|
||||
serverlessRuntimeNetworkProfile: {
|
||||
networkInterfaceConfiguration: {
|
||||
subnetId: "dctcuhgttxhcarwcrgdmsfwksyrzj",
|
||||
vnetId: "tnsqwwoxydeqqffumdnxlkkb",
|
||||
vnetResourceGuid: "5328d299-1462-4be0-bef1-303a28e556a0",
|
||||
},
|
||||
},
|
||||
serverlessRuntimeTags: [{ name: "korveuycuwhs", value: "uyiuegxnkgp" }],
|
||||
serverlessRuntimeUserContextProperties: {
|
||||
userContextToken: "ctgebtvjhwh",
|
||||
},
|
||||
supplementaryFileLocation: "csxaqzpxu",
|
||||
},
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Update a InformaticaServerlessRuntimeResource
|
||||
*
|
||||
* @summary Update a InformaticaServerlessRuntimeResource
|
||||
* x-ms-original-file: specification/informatica/resource-manager/Informatica.DataManagement/stable/2024-05-08/examples/ServerlessRuntimes_Update_MinimumSet_Gen.json
|
||||
*/
|
||||
async function serverlessRuntimesUpdateMin() {
|
||||
const subscriptionId =
|
||||
process.env["INFORMATICA_SUBSCRIPTION_ID"] ||
|
||||
"3599DA28-E346-4D9F-811E-189C0445F0FE";
|
||||
const resourceGroupName =
|
||||
process.env["INFORMATICA_RESOURCE_GROUP"] || "rgopenapi";
|
||||
const organizationName = "_f--";
|
||||
const serverlessRuntimeName = "8Zr__";
|
||||
const properties: InformaticaServerlessRuntimeResourceUpdate = {};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new InformaticaDataManagement(credential, subscriptionId);
|
||||
const result = await client.serverlessRuntimes.update(
|
||||
resourceGroupName,
|
||||
organizationName,
|
||||
serverlessRuntimeName,
|
||||
properties,
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
serverlessRuntimesUpdate();
|
||||
serverlessRuntimesUpdateMin();
|
||||
}
|
||||
|
||||
main().catch(console.error);
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"strict": true,
|
||||
"alwaysStrict": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": [
|
||||
"src/**.ts"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
export { getContinuationToken } from "./pagingHelper";
|
||||
export * from "./models";
|
||||
export { InformaticaDataManagement } from "./informaticaDataManagement";
|
||||
export * from "./operationsInterfaces";
|
|
@ -0,0 +1,153 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the 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";
|
||||
import {
|
||||
Operations,
|
||||
Organizations,
|
||||
ServerlessRuntimes,
|
||||
} from "./operationsInterfaces";
|
||||
import { InformaticaDataManagementOptionalParams } from "./models";
|
||||
|
||||
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.0-beta.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<PipelineResponse> {
|
||||
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;
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
import { AbortSignalLike } from "@azure/abort-controller";
|
||||
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
||||
|
||||
export function createLroSpec<T>(inputs: {
|
||||
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
||||
args: Record<string, unknown>;
|
||||
spec: {
|
||||
readonly requestBody?: unknown;
|
||||
readonly path?: string;
|
||||
readonly httpMethod: string;
|
||||
} & Record<string, any>;
|
||||
}): LongRunningOperation<T> {
|
||||
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,
|
||||
});
|
||||
},
|
||||
};
|
||||
}
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,156 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
import {
|
||||
OperationParameter,
|
||||
OperationURLParameter,
|
||||
OperationQueryParameter,
|
||||
} from "@azure/core-client";
|
||||
import {
|
||||
InformaticaOrganizationResource as InformaticaOrganizationResourceMapper,
|
||||
InformaticaOrganizationResourceUpdate as InformaticaOrganizationResourceUpdateMapper,
|
||||
InformaticaServerlessRuntimeResource as InformaticaServerlessRuntimeResourceMapper,
|
||||
InformaticaServerlessRuntimeResourceUpdate as InformaticaServerlessRuntimeResourceUpdateMapper,
|
||||
} from "../models/mappers";
|
||||
|
||||
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,
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the 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";
|
||||
export * from "./organizations";
|
||||
export * from "./serverlessRuntimes";
|
|
@ -0,0 +1,149 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
||||
import { setContinuationToken } from "../pagingHelper";
|
||||
import { Operations } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { InformaticaDataManagement } from "../informaticaDataManagement";
|
||||
import {
|
||||
Operation,
|
||||
OperationsListNextOptionalParams,
|
||||
OperationsListOptionalParams,
|
||||
OperationsListResponse,
|
||||
OperationsListNextResponse,
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** 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<Operation> {
|
||||
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<Operation[]> {
|
||||
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<Operation> {
|
||||
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<OperationsListResponse> {
|
||||
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<OperationsListNextResponse> {
|
||||
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,
|
||||
};
|
|
@ -0,0 +1,723 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
||||
import { setContinuationToken } from "../pagingHelper";
|
||||
import { Organizations } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { InformaticaDataManagement } from "../informaticaDataManagement";
|
||||
import {
|
||||
SimplePollerLike,
|
||||
OperationState,
|
||||
createHttpPoller,
|
||||
} from "@azure/core-lro";
|
||||
import { createLroSpec } from "../lroImpl";
|
||||
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";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** 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<InformaticaOrganizationResource> {
|
||||
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<InformaticaOrganizationResource[]> {
|
||||
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<InformaticaOrganizationResource> {
|
||||
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<InformaticaOrganizationResource> {
|
||||
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<InformaticaOrganizationResource[]> {
|
||||
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<InformaticaOrganizationResource> {
|
||||
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<OrganizationsListBySubscriptionResponse> {
|
||||
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<OrganizationsListByResourceGroupResponse> {
|
||||
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<OrganizationsGetResponse> {
|
||||
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>,
|
||||
OrganizationsCreateOrUpdateResponse
|
||||
>
|
||||
> {
|
||||
const directSendOperation = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec,
|
||||
): Promise<OrganizationsCreateOrUpdateResponse> => {
|
||||
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<OrganizationsCreateOrUpdateResponse>
|
||||
>(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<OrganizationsCreateOrUpdateResponse> {
|
||||
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<OrganizationsUpdateResponse> {
|
||||
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>,
|
||||
OrganizationsDeleteResponse
|
||||
>
|
||||
> {
|
||||
const directSendOperation = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec,
|
||||
): Promise<OrganizationsDeleteResponse> => {
|
||||
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<OrganizationsDeleteResponse>
|
||||
>(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<OrganizationsDeleteResponse> {
|
||||
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<OrganizationsGetAllServerlessRuntimesResponse> {
|
||||
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<OrganizationsGetServerlessMetadataResponse> {
|
||||
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<OrganizationsListBySubscriptionNextResponse> {
|
||||
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<OrganizationsListByResourceGroupNextResponse> {
|
||||
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,
|
||||
};
|
|
@ -0,0 +1,707 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
||||
import { setContinuationToken } from "../pagingHelper";
|
||||
import { ServerlessRuntimes } from "../operationsInterfaces";
|
||||
import * as coreClient from "@azure/core-client";
|
||||
import * as Mappers from "../models/mappers";
|
||||
import * as Parameters from "../models/parameters";
|
||||
import { InformaticaDataManagement } from "../informaticaDataManagement";
|
||||
import {
|
||||
SimplePollerLike,
|
||||
OperationState,
|
||||
createHttpPoller,
|
||||
} from "@azure/core-lro";
|
||||
import { createLroSpec } from "../lroImpl";
|
||||
import {
|
||||
InformaticaServerlessRuntimeResource,
|
||||
ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams,
|
||||
ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,
|
||||
ServerlessRuntimesListByInformaticaOrganizationResourceResponse,
|
||||
ServerlessRuntimesGetOptionalParams,
|
||||
ServerlessRuntimesGetResponse,
|
||||
ServerlessRuntimesCreateOrUpdateOptionalParams,
|
||||
ServerlessRuntimesCreateOrUpdateResponse,
|
||||
InformaticaServerlessRuntimeResourceUpdate,
|
||||
ServerlessRuntimesUpdateOptionalParams,
|
||||
ServerlessRuntimesUpdateResponse,
|
||||
ServerlessRuntimesDeleteOptionalParams,
|
||||
ServerlessRuntimesDeleteResponse,
|
||||
ServerlessRuntimesCheckDependenciesOptionalParams,
|
||||
ServerlessRuntimesCheckDependenciesResponse,
|
||||
ServerlessRuntimesServerlessResourceByIdOptionalParams,
|
||||
ServerlessRuntimesServerlessResourceByIdResponse,
|
||||
ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams,
|
||||
ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse,
|
||||
} from "../models";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** 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<InformaticaServerlessRuntimeResource> {
|
||||
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<InformaticaServerlessRuntimeResource[]> {
|
||||
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<InformaticaServerlessRuntimeResource> {
|
||||
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<ServerlessRuntimesListByInformaticaOrganizationResourceResponse> {
|
||||
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<ServerlessRuntimesGetResponse> {
|
||||
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>,
|
||||
ServerlessRuntimesCreateOrUpdateResponse
|
||||
>
|
||||
> {
|
||||
const directSendOperation = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec,
|
||||
): Promise<ServerlessRuntimesCreateOrUpdateResponse> => {
|
||||
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<ServerlessRuntimesCreateOrUpdateResponse>
|
||||
>(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<ServerlessRuntimesCreateOrUpdateResponse> {
|
||||
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<ServerlessRuntimesUpdateResponse> {
|
||||
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>,
|
||||
ServerlessRuntimesDeleteResponse
|
||||
>
|
||||
> {
|
||||
const directSendOperation = async (
|
||||
args: coreClient.OperationArguments,
|
||||
spec: coreClient.OperationSpec,
|
||||
): Promise<ServerlessRuntimesDeleteResponse> => {
|
||||
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<ServerlessRuntimesDeleteResponse>
|
||||
>(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<ServerlessRuntimesDeleteResponse> {
|
||||
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<ServerlessRuntimesCheckDependenciesResponse> {
|
||||
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<ServerlessRuntimesServerlessResourceByIdResponse> {
|
||||
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<void> {
|
||||
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<ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse> {
|
||||
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,
|
||||
};
|
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the 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";
|
||||
export * from "./organizations";
|
||||
export * from "./serverlessRuntimes";
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the 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";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Interface representing a Operations. */
|
||||
export interface Operations {
|
||||
/**
|
||||
* List the operations for the provider
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
list(
|
||||
options?: OperationsListOptionalParams,
|
||||
): PagedAsyncIterableIterator<Operation>;
|
||||
}
|
|
@ -0,0 +1,153 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the 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";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** Interface representing a Organizations. */
|
||||
export interface Organizations {
|
||||
/**
|
||||
* List InformaticaOrganizationResource resources by subscription ID
|
||||
* @param options The options parameters.
|
||||
*/
|
||||
listBySubscription(
|
||||
options?: OrganizationsListBySubscriptionOptionalParams,
|
||||
): PagedAsyncIterableIterator<InformaticaOrganizationResource>;
|
||||
/**
|
||||
* 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<InformaticaOrganizationResource>;
|
||||
/**
|
||||
* 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<OrganizationsGetResponse>;
|
||||
/**
|
||||
* 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>,
|
||||
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<OrganizationsCreateOrUpdateResponse>;
|
||||
/**
|
||||
* 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<OrganizationsUpdateResponse>;
|
||||
/**
|
||||
* 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>,
|
||||
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<OrganizationsDeleteResponse>;
|
||||
/**
|
||||
* 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<OrganizationsGetAllServerlessRuntimesResponse>;
|
||||
/**
|
||||
* 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<OrganizationsGetServerlessMetadataResponse>;
|
||||
}
|
|
@ -0,0 +1,177 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the 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";
|
||||
|
||||
/// <reference lib="esnext.asynciterable" />
|
||||
/** 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<InformaticaServerlessRuntimeResource>;
|
||||
/**
|
||||
* 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<ServerlessRuntimesGetResponse>;
|
||||
/**
|
||||
* 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>,
|
||||
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<ServerlessRuntimesCreateOrUpdateResponse>;
|
||||
/**
|
||||
* 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<ServerlessRuntimesUpdateResponse>;
|
||||
/**
|
||||
* 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>,
|
||||
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<ServerlessRuntimesDeleteResponse>;
|
||||
/**
|
||||
* 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<ServerlessRuntimesCheckDependenciesResponse>;
|
||||
/**
|
||||
* 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<ServerlessRuntimesServerlessResourceByIdResponse>;
|
||||
/**
|
||||
* 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<void>;
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
export interface PageInfo {
|
||||
continuationToken?: string;
|
||||
}
|
||||
|
||||
const pageMap = new WeakMap<object, PageInfo>();
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
import {
|
||||
env,
|
||||
Recorder,
|
||||
RecorderStartOptions,
|
||||
delay,
|
||||
isPlaybackMode,
|
||||
} from "@azure-tools/test-recorder";
|
||||
import { createTestCredential } from "@azure-tools/test-credential";
|
||||
import { assert } from "chai";
|
||||
import { Context } from "mocha";
|
||||
import { InformaticaDataManagement } from "../src/informaticaDataManagement";
|
||||
|
||||
const replaceableVariables: Record<string, string> = {
|
||||
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
|
||||
};
|
||||
|
||||
const recorderOptions: RecorderStartOptions = {
|
||||
envSetupForPlayback: replaceableVariables,
|
||||
removeCentralSanitizers: [
|
||||
"AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
|
||||
"AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
|
||||
],
|
||||
};
|
||||
|
||||
export const testPollingOptions = {
|
||||
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
||||
};
|
||||
|
||||
describe("InformaticaDataManagement test", () => {
|
||||
let recorder: Recorder;
|
||||
let subscriptionId: string;
|
||||
let client: InformaticaDataManagement;
|
||||
let location: string;
|
||||
let resourceGroup: string;
|
||||
let resourcename: string;
|
||||
|
||||
beforeEach(async function (this: Context) {
|
||||
recorder = new Recorder(this.currentTest);
|
||||
await recorder.start(recorderOptions);
|
||||
subscriptionId = env.SUBSCRIPTION_ID || '';
|
||||
// This is an example of how the environment variables are used
|
||||
const credential = createTestCredential();
|
||||
client = new InformaticaDataManagement(credential, subscriptionId, recorder.configureClientOptions({}));
|
||||
location = "eastus2euap";
|
||||
resourceGroup = "myjstest";
|
||||
resourcename = "resourcetest";
|
||||
|
||||
});
|
||||
|
||||
afterEach(async function () {
|
||||
await recorder.stop();
|
||||
});
|
||||
|
||||
it("operation list test", async function () {
|
||||
const resArray = new Array();
|
||||
for await (let item of client.operations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
assert.notEqual(resArray.length, 0);
|
||||
});
|
||||
})
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "es6",
|
||||
"moduleResolution": "node",
|
||||
"strict": true,
|
||||
"target": "es6",
|
||||
"sourceMap": true,
|
||||
"declarationMap": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"declaration": true,
|
||||
"outDir": "./dist-esm",
|
||||
"importHelpers": true,
|
||||
"paths": {
|
||||
"@azure/arm-informaticadatamanagement": [
|
||||
"./src/index"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"./src/**/*.ts",
|
||||
"./test/**/*.ts",
|
||||
"samples-dev/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
- feature/*
|
||||
- release/*
|
||||
- hotfix/*
|
||||
exclude:
|
||||
- feature/v4
|
||||
paths:
|
||||
include:
|
||||
- sdk/informatica/arm-informaticadatamanagement
|
||||
- sdk/informatica/ci.mgmt.yml
|
||||
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
- feature/*
|
||||
- release/*
|
||||
- hotfix/*
|
||||
exclude:
|
||||
- feature/v4
|
||||
paths:
|
||||
include:
|
||||
- sdk/informatica/arm-informaticadatamanagement
|
||||
- sdk/informatica/ci.mgmt.yml
|
||||
|
||||
extends:
|
||||
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
|
||||
parameters:
|
||||
ServiceDirectory: informatica
|
||||
Artifacts:
|
||||
- name: azure-arm-informaticadatamanagement
|
||||
safeName: azurearminformaticadatamanagement
|
||||
|
Загрузка…
Ссылка в новой задаче