From 30c702b6d18addc90ddf280ae55c2fceebb01eea Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 30 Jul 2020 10:41:12 +0000 Subject: [PATCH] Generated from 82be65aa8f7c606bb6d88c2a424983b22dc9eafc Sort API's and defintions --- sdk/datashare/arm-datashare/LICENSE.txt | 21 + sdk/datashare/arm-datashare/README.md | 101 + sdk/datashare/arm-datashare/package.json | 58 + sdk/datashare/arm-datashare/rollup.config.js | 37 + .../src/dataShareManagementClient.ts | 64 + .../src/dataShareManagementClientContext.ts | 62 + .../src/models/accountsMappers.ts | 55 + .../src/models/consumerInvitationsMappers.ts | 53 + .../models/consumerSourceDataSetsMappers.ts | 53 + .../src/models/dataSetMappingsMappers.ts | 53 + .../src/models/dataSetsMappers.ts | 53 + .../arm-datashare/src/models/index.ts | 4267 +++++++++++++++++ .../src/models/invitationsMappers.ts | 53 + .../arm-datashare/src/models/mappers.ts | 3234 +++++++++++++ .../src/models/operationsMappers.ts | 20 + .../arm-datashare/src/models/parameters.ts | 209 + .../providerShareSubscriptionsMappers.ts | 53 + .../src/models/shareSubscriptionsMappers.ts | 62 + .../arm-datashare/src/models/sharesMappers.ts | 58 + .../models/synchronizationSettingsMappers.ts | 54 + .../src/models/triggersMappers.ts | 54 + .../arm-datashare/src/operations/accounts.ts | 490 ++ .../src/operations/consumerInvitations.ts | 246 + .../src/operations/consumerSourceDataSets.ts | 144 + .../src/operations/dataSetMappings.ts | 368 ++ .../arm-datashare/src/operations/dataSets.ts | 362 ++ .../arm-datashare/src/operations/index.ts | 22 + .../src/operations/invitations.ts | 363 ++ .../src/operations/operations.ts | 125 + .../operations/providerShareSubscriptions.ts | 349 ++ .../src/operations/shareSubscriptions.ts | 850 ++++ .../arm-datashare/src/operations/shares.ts | 588 +++ .../src/operations/synchronizationSettings.ts | 362 ++ .../arm-datashare/src/operations/triggers.ts | 360 ++ sdk/datashare/arm-datashare/tsconfig.json | 19 + 35 files changed, 13322 insertions(+) create mode 100644 sdk/datashare/arm-datashare/LICENSE.txt create mode 100644 sdk/datashare/arm-datashare/README.md create mode 100644 sdk/datashare/arm-datashare/package.json create mode 100644 sdk/datashare/arm-datashare/rollup.config.js create mode 100644 sdk/datashare/arm-datashare/src/dataShareManagementClient.ts create mode 100644 sdk/datashare/arm-datashare/src/dataShareManagementClientContext.ts create mode 100644 sdk/datashare/arm-datashare/src/models/accountsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/consumerInvitationsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/consumerSourceDataSetsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/dataSetMappingsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/dataSetsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/index.ts create mode 100644 sdk/datashare/arm-datashare/src/models/invitationsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/mappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/operationsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/parameters.ts create mode 100644 sdk/datashare/arm-datashare/src/models/providerShareSubscriptionsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/shareSubscriptionsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/sharesMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/synchronizationSettingsMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/models/triggersMappers.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/accounts.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/consumerInvitations.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/consumerSourceDataSets.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/dataSetMappings.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/dataSets.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/index.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/invitations.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/operations.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/providerShareSubscriptions.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/shareSubscriptions.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/shares.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/synchronizationSettings.ts create mode 100644 sdk/datashare/arm-datashare/src/operations/triggers.ts create mode 100644 sdk/datashare/arm-datashare/tsconfig.json diff --git a/sdk/datashare/arm-datashare/LICENSE.txt b/sdk/datashare/arm-datashare/LICENSE.txt new file mode 100644 index 000000000000..ea8fb1516028 --- /dev/null +++ b/sdk/datashare/arm-datashare/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 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. diff --git a/sdk/datashare/arm-datashare/README.md b/sdk/datashare/arm-datashare/README.md new file mode 100644 index 000000000000..23f73e434cb1 --- /dev/null +++ b/sdk/datashare/arm-datashare/README.md @@ -0,0 +1,101 @@ +## Azure DataShareManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for DataShareManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-datashare +``` + +### How to use + +#### nodejs - Authentication, client creation and listBySubscription accounts as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" +``` + +##### Sample code + +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { DataShareManagementClient, DataShareManagementModels, DataShareManagementMappers } from "@azure/arm-datashare"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new DataShareManagementClient(creds, subscriptionId); + const skipToken = "testskipToken"; + client.accounts.listBySubscription(skipToken).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and listBySubscription accounts as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-datashare sample + + + + + + + + +``` + +## 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/sdk/datashare/arm-datashare/README.png) diff --git a/sdk/datashare/arm-datashare/package.json b/sdk/datashare/arm-datashare/package.json new file mode 100644 index 000000000000..797452584b24 --- /dev/null +++ b/sdk/datashare/arm-datashare/package.json @@ -0,0 +1,58 @@ +{ + "name": "@azure/arm-datashare", + "author": "Microsoft Corporation", + "description": "DataShareManagementClient Library with typescript type definitions for node.js and browser.", + "version": "1.0.0", + "dependencies": { + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "license": "MIT", + "main": "./dist/arm-datashare.js", + "module": "./esm/dataShareManagementClient.js", + "types": "./esm/dataShareManagementClient.d.ts", + "devDependencies": { + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/datashare/arm-datashare", + "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", + "esm/**/*.js", + "esm/**/*.js.map", + "esm/**/*.d.ts", + "esm/**/*.d.ts.map", + "src/**/*.ts", + "README.md", + "rollup.config.js", + "tsconfig.json" + ], + "scripts": { + "build": "tsc && rollup -c rollup.config.js && npm run minify", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-datashare.js.map'\" -o ./dist/arm-datashare.min.js ./dist/arm-datashare.js", + "prepack": "npm install && npm run build" + }, + "sideEffects": false, + "autoPublish": true +} diff --git a/sdk/datashare/arm-datashare/rollup.config.js b/sdk/datashare/arm-datashare/rollup.config.js new file mode 100644 index 000000000000..aa116b7d8341 --- /dev/null +++ b/sdk/datashare/arm-datashare/rollup.config.js @@ -0,0 +1,37 @@ +import rollup from "rollup"; +import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + +/** + * @type {rollup.RollupFileOptions} + */ +const config = { + input: "./esm/dataShareManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], + output: { + file: "./dist/arm-datashare.js", + format: "umd", + name: "Azure.ArmDatashare", + sourcemap: true, + globals: { + "@azure/ms-rest-js": "msRest", + "@azure/ms-rest-azure-js": "msRestAzure" + }, + banner: `/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */` + }, + plugins: [ + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() + ] +}; + +export default config; diff --git a/sdk/datashare/arm-datashare/src/dataShareManagementClient.ts b/sdk/datashare/arm-datashare/src/dataShareManagementClient.ts new file mode 100644 index 000000000000..ae3d64c269f5 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/dataShareManagementClient.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "./models"; +import * as Mappers from "./models/mappers"; +import * as operations from "./operations"; +import { DataShareManagementClientContext } from "./dataShareManagementClientContext"; + + +class DataShareManagementClient extends DataShareManagementClientContext { + // Operation groups + accounts: operations.Accounts; + consumerInvitations: operations.ConsumerInvitations; + dataSets: operations.DataSets; + dataSetMappings: operations.DataSetMappings; + invitations: operations.Invitations; + operations: operations.Operations; + shares: operations.Shares; + providerShareSubscriptions: operations.ProviderShareSubscriptions; + shareSubscriptions: operations.ShareSubscriptions; + consumerSourceDataSets: operations.ConsumerSourceDataSets; + synchronizationSettings: operations.SynchronizationSettings; + triggers: operations.Triggers; + + /** + * Initializes a new instance of the DataShareManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The subscription identifier + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DataShareManagementClientOptions) { + super(credentials, subscriptionId, options); + this.accounts = new operations.Accounts(this); + this.consumerInvitations = new operations.ConsumerInvitations(this); + this.dataSets = new operations.DataSets(this); + this.dataSetMappings = new operations.DataSetMappings(this); + this.invitations = new operations.Invitations(this); + this.operations = new operations.Operations(this); + this.shares = new operations.Shares(this); + this.providerShareSubscriptions = new operations.ProviderShareSubscriptions(this); + this.shareSubscriptions = new operations.ShareSubscriptions(this); + this.consumerSourceDataSets = new operations.ConsumerSourceDataSets(this); + this.synchronizationSettings = new operations.SynchronizationSettings(this); + this.triggers = new operations.Triggers(this); + } +} + +// Operation Specifications + +export { + DataShareManagementClient, + DataShareManagementClientContext, + Models as DataShareManagementModels, + Mappers as DataShareManagementMappers +}; +export * from "./operations"; diff --git a/sdk/datashare/arm-datashare/src/dataShareManagementClientContext.ts b/sdk/datashare/arm-datashare/src/dataShareManagementClientContext.ts new file mode 100644 index 000000000000..55895fed239b --- /dev/null +++ b/sdk/datashare/arm-datashare/src/dataShareManagementClientContext.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-datashare"; +const packageVersion = "1.0.0"; + +export class DataShareManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + apiVersion?: string; + subscriptionId: string; + + /** + * Initializes a new instance of the DataShareManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId The subscription identifier + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.DataShareManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.apiVersion = '2019-11-01'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/datashare/arm-datashare/src/models/accountsMappers.ts b/sdk/datashare/arm-datashare/src/models/accountsMappers.ts new file mode 100644 index 000000000000..634337c9496c --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/accountsMappers.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + AccountList, + AccountUpdateParameters, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + OperationResponse, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/consumerInvitationsMappers.ts b/sdk/datashare/arm-datashare/src/models/consumerInvitationsMappers.ts new file mode 100644 index 000000000000..4f520d033915 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/consumerInvitationsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerInvitationList, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/consumerSourceDataSetsMappers.ts b/sdk/datashare/arm-datashare/src/models/consumerSourceDataSetsMappers.ts new file mode 100644 index 000000000000..d1b2fe741565 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/consumerSourceDataSetsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + ConsumerSourceDataSetList, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/dataSetMappingsMappers.ts b/sdk/datashare/arm-datashare/src/models/dataSetMappingsMappers.ts new file mode 100644 index 000000000000..2dcfca786464 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/dataSetMappingsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataSetMappingList, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/dataSetsMappers.ts b/sdk/datashare/arm-datashare/src/models/dataSetsMappers.ts new file mode 100644 index 000000000000..d6fd919a4124 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/dataSetsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetList, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/index.ts b/sdk/datashare/arm-datashare/src/models/index.ts new file mode 100644 index 000000000000..c56f270c7738 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/index.ts @@ -0,0 +1,4267 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + +/** + * Identity of resource + */ +export interface Identity { + /** + * service principal Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * Tenant Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * Identity Type. Possible values include: 'SystemAssigned' + */ + type?: Type; +} + +/** + * Base data transfer object implementation for default resources. + */ +export interface DefaultDto extends BaseResource { + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Location of the azure resource. + */ + location?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Tags on the azure resource. + */ + tags?: { [propertyName: string]: string }; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * An account data transfer object. + */ +export interface Account extends DefaultDto { + /** + * Identity Info on the Account + */ + identity: Identity; + /** + * Time at which the account was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * Provisioning state of the Account. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Email of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userEmail?: string; + /** + * Name of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * The data share error body model. + */ +export interface DataShareErrorInfo { + /** + * Code of the error + */ + code: string; + /** + * Nested details of the error model + */ + details?: DataShareErrorInfo[]; + /** + * Message of the error + */ + message: string; + /** + * Target of the error + */ + target?: string; +} + +/** + * The data share error model. + */ +export interface DataShareError { + /** + * The data share error body + */ + error: DataShareErrorInfo; +} + +/** + * Response for long running operation + */ +export interface OperationResponse { + /** + * start time + */ + endTime?: Date; + /** + * The error property when status is failed. + */ + error?: DataShareErrorInfo; + /** + * start time + */ + startTime?: Date; + /** + * Operation state of the long running operation. Possible values include: 'Accepted', + * 'InProgress', 'TransientFailure', 'Succeeded', 'Failed', 'Canceled' + */ + status: Status; +} + +/** + * Update parameters for accounts + */ +export interface AccountUpdateParameters { + /** + * Tags on the azure resource. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Base data transfer object implementation for proxy resources. + */ +export interface ProxyDto extends BaseResource { + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * A consumer Invitation data transfer object. + */ +export interface ConsumerInvitation extends ProxyDto { + /** + * Number of data sets in a share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetCount?: number; + /** + * Description shared when the invitation was created + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Unique id of the invitation. + */ + invitationId: string; + /** + * The status of the invitation. Possible values include: 'Pending', 'Accepted', 'Rejected', + * 'Withdrawn' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly invitationStatus?: InvitationStatus; + /** + * invitation location + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Email of the provider who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerEmail?: string; + /** + * Name of the provider who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerName?: string; + /** + * Tenant name of the provider who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerTenantName?: string; + /** + * The time the recipient responded to the invitation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly respondedAt?: Date; + /** + * Gets the time at which the invitation was sent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sentAt?: Date; + /** + * Gets the source share Name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareName?: string; + /** + * Terms of use shared when the invitation was created + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly termsOfUse?: string; + /** + * Email of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userEmail?: string; + /** + * Name of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * Contains the possible cases for DataSet. + */ +export type DataSetUnion = DataSet | BlobDataSet | BlobFolderDataSet | BlobContainerDataSet | ADLSGen2FileDataSet | ADLSGen2FolderDataSet | ADLSGen2FileSystemDataSet | ADLSGen1FolderDataSet | ADLSGen1FileDataSet | KustoClusterDataSet | KustoDatabaseDataSet | SqlDWTableDataSet | SqlDBTableDataSet; + +/** + * A DataSet data transfer object. + */ +export interface DataSet { + /** + * Polymorphic Discriminator + */ + kind: "DataSet"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Contains the possible cases for DataSetMapping. + */ +export type DataSetMappingUnion = DataSetMapping | BlobDataSetMapping | BlobFolderDataSetMapping | BlobContainerDataSetMapping | ADLSGen2FileDataSetMapping | ADLSGen2FolderDataSetMapping | ADLSGen2FileSystemDataSetMapping | KustoClusterDataSetMapping | KustoDatabaseDataSetMapping | SqlDWTableDataSetMapping | SqlDBTableDataSetMapping; + +/** + * A data set mapping data transfer object. + */ +export interface DataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "DataSetMapping"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * A Invitation data transfer object. + */ +export interface Invitation extends ProxyDto { + /** + * unique invitation id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly invitationId?: string; + /** + * The status of the invitation. Possible values include: 'Pending', 'Accepted', 'Rejected', + * 'Withdrawn' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly invitationStatus?: InvitationStatus; + /** + * The time the recipient responded to the invitation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly respondedAt?: Date; + /** + * Gets the time at which the invitation was sent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sentAt?: Date; + /** + * The target Azure AD Id. Can't be combined with email. + */ + targetActiveDirectoryId?: string; + /** + * The email the invitation is directed to. + */ + targetEmail?: string; + /** + * The target user or application Id that invitation is being sent to. + * Must be specified along TargetActiveDirectoryId. This enables sending + * invitations to specific users or applications in an AD tenant. + */ + targetObjectId?: string; + /** + * Email of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userEmail?: string; + /** + * Name of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * Properties on operations + */ +export interface OperationModelProperties { + /** + * Description of the operation for display purposes + */ + description?: string; + /** + * Name of the operation for display purposes + */ + operation?: string; + /** + * Name of the provider for display purposes + */ + provider?: string; + /** + * Name of the resource type for display purposes + */ + resource?: string; +} + +/** + * log specifications for operation api + */ +export interface OperationMetaLogSpecification { + /** + * blob duration of the log + */ + blobDuration?: string; + /** + * localized name of the log category + */ + displayName?: string; + /** + * name of the log category + */ + name?: string; +} + +/** + * properties for dimension + */ +export interface DimensionProperties { + /** + * localized display name of the dimension to customer + */ + displayName?: string; + /** + * dimension name + */ + name?: string; +} + +/** + * metric specifications for the operation + */ +export interface OperationMetaMetricSpecification { + /** + * aggregation type of metric + */ + aggregationType?: string; + /** + * properties for dimension + */ + dimensions?: DimensionProperties[]; + /** + * description of the metric + */ + displayDescription?: string; + /** + * localized name of the metric + */ + displayName?: string; + /** + * enable regional mdm account + */ + enableRegionalMdmAccount?: string; + /** + * internal metric name + */ + internalMetricName?: string; + /** + * name of the metric + */ + name?: string; + /** + * dimension name use to replace resource id if specified + */ + resourceIdDimensionNameOverride?: string; + /** + * supported aggregation types + */ + supportedAggregationTypes?: string[]; + /** + * supported time grain types + */ + supportedTimeGrainTypes?: string[]; + /** + * units for the metric + */ + unit?: string; +} + +/** + * The operation meta service specification + */ +export interface OperationMetaServiceSpecification { + /** + * log specifications for the operation + */ + logSpecifications?: OperationMetaLogSpecification[]; + /** + * metric specifications for the operation + */ + metricSpecifications?: OperationMetaMetricSpecification[]; +} + +/** + * The response model for get operations + */ +export interface OperationModel { + /** + * Properties on the operation + */ + display?: OperationModelProperties; + /** + * Operation name for display purposes + */ + name?: string; + /** + * origin of the operation + */ + origin?: string; + /** + * meta service specification + */ + serviceSpecification?: OperationMetaServiceSpecification; +} + +/** + * A ShareSynchronization data transfer object. + */ +export interface ShareSynchronization { + /** + * Email of the user who created the synchronization + */ + consumerEmail?: string; + /** + * Name of the user who created the synchronization + */ + consumerName?: string; + /** + * Tenant name of the consumer who created the synchronization + */ + consumerTenantName?: string; + /** + * synchronization duration + */ + durationMs?: number; + /** + * End time of synchronization + */ + endTime?: Date; + /** + * message of synchronization + */ + message?: string; + /** + * start time of synchronization + */ + startTime?: Date; + /** + * Raw Status + */ + status?: string; + /** + * Synchronization id + */ + synchronizationId?: string; + /** + * Synchronization mode. Possible values include: 'Incremental', 'FullSync' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly synchronizationMode?: SynchronizationMode; +} + +/** + * Synchronization details at data set level + */ +export interface SynchronizationDetails { + /** + * Id of data set + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Type of the data set. Possible values include: 'Blob', 'Container', 'BlobFolder', + * 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', + * 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetType?: DataSetType; + /** + * Duration of data set level copy + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly durationMs?: number; + /** + * End time of data set level copy + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * The number of files read from the source data set + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly filesRead?: number; + /** + * The number of files written into the sink data set + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly filesWritten?: number; + /** + * Error message if any + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * Name of the data set + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The number of files copied into the sink data set + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rowsCopied?: number; + /** + * The number of rows read from the source data set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly rowsRead?: number; + /** + * The size of the data read from the source data set in bytes + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sizeRead?: number; + /** + * The size of the data written into the sink data set in bytes + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sizeWritten?: number; + /** + * Start time of data set level copy + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * Raw Status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * The vCore units consumed for the data set synchronization + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly vCore?: number; +} + +/** + * A provider side share subscription data transfer object. + */ +export interface ProviderShareSubscription extends ProxyDto { + /** + * Email of the consumer who created the share subscription + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly consumerEmail?: string; + /** + * Name of the consumer who created the share subscription + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly consumerName?: string; + /** + * Tenant name of the consumer who created the share subscription + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly consumerTenantName?: string; + /** + * created at + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * Email of the provider who created the share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerEmail?: string; + /** + * Name of the provider who created the share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerName?: string; + /** + * Shared at + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sharedAt?: Date; + /** + * share Subscription Object Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareSubscriptionObjectId?: string; + /** + * Gets the status of share subscription. Possible values include: 'Active', 'Revoked', + * 'SourceDeleted', 'Revoking' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareSubscriptionStatus?: ShareSubscriptionStatus; +} + +/** + * A share data transfer object. + */ +export interface Share extends ProxyDto { + /** + * Time at which the share was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * Share description. + */ + description?: string; + /** + * Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Share kind. Possible values include: 'CopyBased', 'InPlace' + */ + shareKind?: ShareKind; + /** + * Share terms. + */ + terms?: string; + /** + * Email of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userEmail?: string; + /** + * Name of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * A ShareSubscriptionSynchronization data transfer object. + */ +export interface ShareSubscriptionSynchronization { + /** + * Synchronization duration + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly durationMs?: number; + /** + * End time of synchronization + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endTime?: Date; + /** + * message of Synchronization + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * start time of synchronization + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly startTime?: Date; + /** + * Raw Status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * Synchronization id + */ + synchronizationId: string; + /** + * Synchronization Mode. Possible values include: 'Incremental', 'FullSync' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly synchronizationMode?: SynchronizationMode; +} + +/** + * A consumer side dataSet data transfer object. + */ +export interface ConsumerSourceDataSet extends ProxyDto { + /** + * DataSet Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Location of the data set. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetLocation?: string; + /** + * DataSet name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetName?: string; + /** + * DataSet path + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetPath?: string; + /** + * Type of data set. Possible values include: 'Blob', 'Container', 'BlobFolder', + * 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', + * 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetType?: DataSetType; +} + +/** + * Contains the possible cases for SourceShareSynchronizationSetting. + */ +export type SourceShareSynchronizationSettingUnion = SourceShareSynchronizationSetting | ScheduledSourceSynchronizationSetting; + +/** + * A view of synchronization setting added by the provider + */ +export interface SourceShareSynchronizationSetting { + /** + * Polymorphic Discriminator + */ + kind: "SourceShareSynchronizationSetting"; +} + +/** + * Payload for the synchronizing the data. + */ +export interface Synchronize { + /** + * Mode of synchronization used in triggers and snapshot sync. Incremental by default. Possible + * values include: 'Incremental', 'FullSync' + */ + synchronizationMode?: SynchronizationMode; +} + +/** + * A share subscription data transfer object. + */ +export interface ShareSubscription extends ProxyDto { + /** + * Time at which the share subscription was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * The invitation id. + */ + invitationId: string; + /** + * Email of the provider who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerEmail?: string; + /** + * Name of the provider who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerName?: string; + /** + * Tenant name of the provider who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly providerTenantName?: string; + /** + * Provisioning state of the share subscription. Possible values include: 'Succeeded', + * 'Creating', 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Description of share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareDescription?: string; + /** + * Kind of share. Possible values include: 'CopyBased', 'InPlace' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareKind?: ShareKind; + /** + * Name of the share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareName?: string; + /** + * Gets the current status of share subscription. Possible values include: 'Active', 'Revoked', + * 'SourceDeleted', 'Revoking' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareSubscriptionStatus?: ShareSubscriptionStatus; + /** + * Terms of a share + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly shareTerms?: string; + /** + * Source share location. + */ + sourceShareLocation: string; + /** + * Email of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userEmail?: string; + /** + * Name of the user who created the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * Contains the possible cases for SynchronizationSetting. + */ +export type SynchronizationSettingUnion = SynchronizationSetting | ScheduledSynchronizationSetting; + +/** + * A Synchronization Setting data transfer object. + */ +export interface SynchronizationSetting { + /** + * Polymorphic Discriminator + */ + kind: "SynchronizationSetting"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * Contains the possible cases for Trigger. + */ +export type TriggerUnion = Trigger | ScheduledTrigger; + +/** + * A Trigger data transfer object. + */ +export interface Trigger { + /** + * Polymorphic Discriminator + */ + kind: "Trigger"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * A type of synchronization setting based on schedule + */ +export interface ScheduledSynchronizationSetting { + /** + * Polymorphic Discriminator + */ + kind: "ScheduleBased"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Time at which the synchronization setting was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Recurrence Interval. Possible values include: 'Hour', 'Day' + */ + recurrenceInterval: RecurrenceInterval; + /** + * Synchronization time + */ + synchronizationTime: Date; + /** + * Name of the user who created the synchronization setting. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * A type of trigger based on schedule + */ +export interface ScheduledTrigger { + /** + * Polymorphic Discriminator + */ + kind: "ScheduleBased"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Time at which the trigger was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdAt?: Date; + /** + * Gets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', + * 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Recurrence Interval. Possible values include: 'Hour', 'Day' + */ + recurrenceInterval: RecurrenceInterval; + /** + * Synchronization mode. Possible values include: 'Incremental', 'FullSync' + */ + synchronizationMode?: SynchronizationMode; + /** + * Synchronization time + */ + synchronizationTime: Date; + /** + * Gets the trigger state. Possible values include: 'Active', 'Inactive', + * 'SourceSynchronizationSettingDeleted' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly triggerStatus?: TriggerStatus; + /** + * Name of the user who created the trigger. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userName?: string; +} + +/** + * An Azure storage blob data set. + */ +export interface BlobDataSet { + /** + * Polymorphic Discriminator + */ + kind: "Blob"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Container that has the file path. + */ + containerName: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * File path within the source data set + */ + filePath: string; + /** + * Resource group of storage account + */ + resourceGroup: string; + /** + * Storage account name of the source data set + */ + storageAccountName: string; + /** + * Subscription id of storage account + */ + subscriptionId: string; +} + +/** + * An Azure storage blob folder data set. + */ +export interface BlobFolderDataSet { + /** + * Polymorphic Discriminator + */ + kind: "BlobFolder"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Container that has the file path. + */ + containerName: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Prefix for blob folder + */ + prefix: string; + /** + * Resource group of storage account + */ + resourceGroup: string; + /** + * Storage account name of the source data set + */ + storageAccountName: string; + /** + * Subscription id of storage account + */ + subscriptionId: string; +} + +/** + * An Azure storage blob container data set. + */ +export interface BlobContainerDataSet { + /** + * Polymorphic Discriminator + */ + kind: "Container"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * BLOB Container name. + */ + containerName: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Resource group of storage account + */ + resourceGroup: string; + /** + * Storage account name of the source data set + */ + storageAccountName: string; + /** + * Subscription id of storage account + */ + subscriptionId: string; +} + +/** + * An ADLS Gen 2 file data set. + */ +export interface ADLSGen2FileDataSet { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen2File"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * File path within the file system. + */ + filePath: string; + /** + * File system to which the file belongs. + */ + fileSystem: string; + /** + * Resource group of storage account + */ + resourceGroup: string; + /** + * Storage account name of the source data set + */ + storageAccountName: string; + /** + * Subscription id of storage account + */ + subscriptionId: string; +} + +/** + * An ADLS Gen 2 folder data set. + */ +export interface ADLSGen2FolderDataSet { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen2Folder"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * File system to which the folder belongs. + */ + fileSystem: string; + /** + * Folder path within the file system. + */ + folderPath: string; + /** + * Resource group of storage account + */ + resourceGroup: string; + /** + * Storage account name of the source data set + */ + storageAccountName: string; + /** + * Subscription id of storage account + */ + subscriptionId: string; +} + +/** + * An ADLS Gen 2 file system data set. + */ +export interface ADLSGen2FileSystemDataSet { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen2FileSystem"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * The file system name. + */ + fileSystem: string; + /** + * Resource group of storage account + */ + resourceGroup: string; + /** + * Storage account name of the source data set + */ + storageAccountName: string; + /** + * Subscription id of storage account + */ + subscriptionId: string; +} + +/** + * An ADLS Gen 1 folder data set. + */ +export interface ADLSGen1FolderDataSet { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen1Folder"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The ADLS account name. + */ + accountName: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * The folder path within the ADLS account. + */ + folderPath: string; + /** + * Resource group of ADLS account. + */ + resourceGroup: string; + /** + * Subscription id of ADLS account. + */ + subscriptionId: string; +} + +/** + * An ADLS Gen 1 file data set. + */ +export interface ADLSGen1FileDataSet { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen1File"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The ADLS account name. + */ + accountName: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * The file name in the ADLS account. + */ + fileName: string; + /** + * The folder path within the ADLS account. + */ + folderPath: string; + /** + * Resource group of ADLS account. + */ + resourceGroup: string; + /** + * Subscription id of ADLS account. + */ + subscriptionId: string; +} + +/** + * A kusto cluster data set. + */ +export interface KustoClusterDataSet { + /** + * Polymorphic Discriminator + */ + kind: "KustoCluster"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Resource id of the kusto cluster. + */ + kustoClusterResourceId: string; + /** + * Location of the kusto cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Provisioning state of the kusto cluster data set. Possible values include: 'Succeeded', + * 'Creating', 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * A kusto database data set. + */ +export interface KustoDatabaseDataSet { + /** + * Polymorphic Discriminator + */ + kind: "KustoDatabase"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Resource id of the kusto database. + */ + kustoDatabaseResourceId: string; + /** + * Location of the kusto cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Provisioning state of the kusto database data set. Possible values include: 'Succeeded', + * 'Creating', 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * A SQL DW table data set. + */ +export interface SqlDWTableDataSet { + /** + * Polymorphic Discriminator + */ + kind: "SqlDWTable"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * DataWarehouse name of the source data set + */ + dataWarehouseName: string; + /** + * Schema of the table. Default value is dbo. + */ + schemaName: string; + /** + * Resource id of SQL server + */ + sqlServerResourceId: string; + /** + * SQL DW table name. + */ + tableName: string; +} + +/** + * A SQL DB table data set. + */ +export interface SqlDBTableDataSet { + /** + * Polymorphic Discriminator + */ + kind: "SqlDBTable"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Database name of the source data set + */ + databaseName: string; + /** + * Unique id for identifying a data set resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetId?: string; + /** + * Schema of the table. Default value is dbo. + */ + schemaName: string; + /** + * Resource id of SQL server + */ + sqlServerResourceId: string; + /** + * SQL DB table name. + */ + tableName: string; +} + +/** + * A Blob data set mapping. + */ +export interface BlobDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "Blob"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Container that has the file path. + */ + containerName: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * File path within the source data set + */ + filePath: string; + /** + * File output type. Possible values include: 'Csv', 'Parquet' + */ + outputType?: OutputType; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource group of storage account. + */ + resourceGroup: string; + /** + * Storage account name of the source data set. + */ + storageAccountName: string; + /** + * Subscription id of storage account. + */ + subscriptionId: string; +} + +/** + * A Blob folder data set mapping. + */ +export interface BlobFolderDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "BlobFolder"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Container that has the file path. + */ + containerName: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * Prefix for blob folder + */ + prefix: string; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource group of storage account. + */ + resourceGroup: string; + /** + * Storage account name of the source data set. + */ + storageAccountName: string; + /** + * Subscription id of storage account. + */ + subscriptionId: string; +} + +/** + * A Blob container data set mapping. + */ +export interface BlobContainerDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "Container"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * BLOB Container name. + */ + containerName: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource group of storage account. + */ + resourceGroup: string; + /** + * Storage account name of the source data set. + */ + storageAccountName: string; + /** + * Subscription id of storage account. + */ + subscriptionId: string; +} + +/** + * An ADLS Gen2 file data set mapping. + */ +export interface ADLSGen2FileDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen2File"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * File path within the file system. + */ + filePath: string; + /** + * File system to which the file belongs. + */ + fileSystem: string; + /** + * Type of output file. Possible values include: 'Csv', 'Parquet' + */ + outputType?: OutputType; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource group of storage account. + */ + resourceGroup: string; + /** + * Storage account name of the source data set. + */ + storageAccountName: string; + /** + * Subscription id of storage account. + */ + subscriptionId: string; +} + +/** + * An ADLS Gen2 folder data set mapping. + */ +export interface ADLSGen2FolderDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen2Folder"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * File system to which the folder belongs. + */ + fileSystem: string; + /** + * Folder path within the file system. + */ + folderPath: string; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource group of storage account. + */ + resourceGroup: string; + /** + * Storage account name of the source data set. + */ + storageAccountName: string; + /** + * Subscription id of storage account. + */ + subscriptionId: string; +} + +/** + * An ADLS Gen2 file system data set mapping. + */ +export interface ADLSGen2FileSystemDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "AdlsGen2FileSystem"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * The file system name. + */ + fileSystem: string; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Resource group of storage account. + */ + resourceGroup: string; + /** + * Storage account name of the source data set. + */ + storageAccountName: string; + /** + * Subscription id of storage account. + */ + subscriptionId: string; +} + +/** + * A Kusto cluster data set mapping + */ +export interface KustoClusterDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "KustoCluster"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * Resource id of the sink kusto cluster. + */ + kustoClusterResourceId: string; + /** + * Location of the sink kusto cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * A Kusto database data set mapping + */ +export interface KustoDatabaseDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "KustoDatabase"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * Resource id of the sink kusto cluster. + */ + kustoClusterResourceId: string; + /** + * Location of the sink kusto cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * A SQL DW Table data set mapping. + */ +export interface SqlDWTableDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "SqlDWTable"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * DataWarehouse name of the source data set + */ + dataWarehouseName: string; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Schema of the table. Default value is dbo. + */ + schemaName: string; + /** + * Resource id of SQL server + */ + sqlServerResourceId: string; + /** + * SQL DW table name. + */ + tableName: string; +} + +/** + * A SQL DB Table data set mapping. + */ +export interface SqlDBTableDataSetMapping { + /** + * Polymorphic Discriminator + */ + kind: "SqlDBTable"; + /** + * The resource id of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Name of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Type of the azure resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * DatabaseName name of the sink data set + */ + databaseName: string; + /** + * The id of the source data set. + */ + dataSetId: string; + /** + * Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataSetMappingStatus?: DataSetMappingStatus; + /** + * Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', + * 'Deleting', 'Moving', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * Schema of the table. Default value is dbo. + */ + schemaName: string; + /** + * Resource id of SQL server + */ + sqlServerResourceId: string; + /** + * SQL DB table name. + */ + tableName: string; +} + +/** + * A type of synchronization setting based on schedule + */ +export interface ScheduledSourceSynchronizationSetting { + /** + * Polymorphic Discriminator + */ + kind: "ScheduleBased"; + /** + * Recurrence Interval. Possible values include: 'Hour', 'Day' + */ + recurrenceInterval?: RecurrenceInterval; + /** + * Synchronization time + */ + synchronizationTime?: Date; +} + +/** + * Optional Parameters. + */ +export interface AccountsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface AccountsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ConsumerInvitationsListInvitationsOptionalParams extends msRest.RequestOptionsBase { + /** + * The continuation token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface DataSetsListByShareOptionalParams extends msRest.RequestOptionsBase { + /** + * continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface DataSetMappingsListByShareSubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface InvitationsListByShareOptionalParams extends msRest.RequestOptionsBase { + /** + * The continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharesListSynchronizationDetailsOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharesListSynchronizationsOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface SharesListByAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation Token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ProviderShareSubscriptionsListByShareOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation Token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ShareSubscriptionsListSourceShareSynchronizationSettingsOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface ShareSubscriptionsListSynchronizationDetailsOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ShareSubscriptionsListSynchronizationsOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ShareSubscriptionsListByAccountOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation Token + */ + skipToken?: string; + /** + * Filters the results using OData syntax. + */ + filter?: string; + /** + * Sorts the results using OData syntax. + */ + orderby?: string; +} + +/** + * Optional Parameters. + */ +export interface ConsumerSourceDataSetsListByShareSubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface SynchronizationSettingsListByShareOptionalParams extends msRest.RequestOptionsBase { + /** + * continuation token + */ + skipToken?: string; +} + +/** + * Optional Parameters. + */ +export interface TriggersListByShareSubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Continuation token + */ + skipToken?: string; +} + +/** + * An interface representing DataShareManagementClientOptions. + */ +export interface DataShareManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * List response for get Accounts. + * @extends Array + */ +export interface AccountList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get InvitationList + * @extends Array + */ +export interface ConsumerInvitationList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get DataSets + * @extends Array + */ +export interface DataSetList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get DataSetMappings + * @extends Array + */ +export interface DataSetMappingList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get InvitationList + * @extends Array + */ +export interface InvitationList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get operations. + * @extends Array + */ +export interface OperationList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * details of synchronization + * @extends Array + */ +export interface SynchronizationDetailsList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get ShareSynchronization. + * @extends Array + */ +export interface ShareSynchronizationList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get Shares. + * @extends Array + */ +export interface ShareList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get ShareSubscription. + * @extends Array + */ +export interface ProviderShareSubscriptionList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get source share Synchronization settings + * @extends Array + */ +export interface SourceShareSynchronizationSettingList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * A consumer side list of share subscription synchronizations + * @extends Array + */ +export interface ShareSubscriptionSynchronizationList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get ShareSubscription. + * @extends Array + */ +export interface ShareSubscriptionList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * A consumer side list of source dataSets + * @extends Array + */ +export interface ConsumerSourceDataSetList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get Synchronization settings + * @extends Array + */ +export interface SynchronizationSettingList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * @interface + * List response for get triggers + * @extends Array + */ +export interface TriggerList extends Array { + /** + * The Url of next result page. + */ + nextLink?: string; +} + +/** + * Defines values for Type. + * Possible values include: 'SystemAssigned' + * @readonly + * @enum {string} + */ +export type Type = 'SystemAssigned'; + +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Succeeded' | 'Creating' | 'Deleting' | 'Moving' | 'Failed'; + +/** + * Defines values for Status. + * Possible values include: 'Accepted', 'InProgress', 'TransientFailure', 'Succeeded', 'Failed', + * 'Canceled' + * @readonly + * @enum {string} + */ +export type Status = 'Accepted' | 'InProgress' | 'TransientFailure' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for InvitationStatus. + * Possible values include: 'Pending', 'Accepted', 'Rejected', 'Withdrawn' + * @readonly + * @enum {string} + */ +export type InvitationStatus = 'Pending' | 'Accepted' | 'Rejected' | 'Withdrawn'; + +/** + * Defines values for SynchronizationMode. + * Possible values include: 'Incremental', 'FullSync' + * @readonly + * @enum {string} + */ +export type SynchronizationMode = 'Incremental' | 'FullSync'; + +/** + * Defines values for DataSetType. + * Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', + * 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', + * 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' + * @readonly + * @enum {string} + */ +export type DataSetType = 'Blob' | 'Container' | 'BlobFolder' | 'AdlsGen2FileSystem' | 'AdlsGen2Folder' | 'AdlsGen2File' | 'AdlsGen1Folder' | 'AdlsGen1File' | 'KustoCluster' | 'KustoDatabase' | 'SqlDBTable' | 'SqlDWTable'; + +/** + * Defines values for ShareSubscriptionStatus. + * Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking' + * @readonly + * @enum {string} + */ +export type ShareSubscriptionStatus = 'Active' | 'Revoked' | 'SourceDeleted' | 'Revoking'; + +/** + * Defines values for ShareKind. + * Possible values include: 'CopyBased', 'InPlace' + * @readonly + * @enum {string} + */ +export type ShareKind = 'CopyBased' | 'InPlace'; + +/** + * Defines values for RecurrenceInterval. + * Possible values include: 'Hour', 'Day' + * @readonly + * @enum {string} + */ +export type RecurrenceInterval = 'Hour' | 'Day'; + +/** + * Defines values for TriggerStatus. + * Possible values include: 'Active', 'Inactive', 'SourceSynchronizationSettingDeleted' + * @readonly + * @enum {string} + */ +export type TriggerStatus = 'Active' | 'Inactive' | 'SourceSynchronizationSettingDeleted'; + +/** + * Defines values for DataSetMappingStatus. + * Possible values include: 'Ok', 'Broken' + * @readonly + * @enum {string} + */ +export type DataSetMappingStatus = 'Ok' | 'Broken'; + +/** + * Defines values for OutputType. + * Possible values include: 'Csv', 'Parquet' + * @readonly + * @enum {string} + */ +export type OutputType = 'Csv' | 'Parquet'; + +/** + * Contains response data for the listBySubscription operation. + */ +export type AccountsListBySubscriptionResponse = AccountList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccountList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type AccountsGetResponse = Account & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Account; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type AccountsCreateResponse = Account & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Account; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type AccountsDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type AccountsUpdateResponse = Account & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Account; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type AccountsListByResourceGroupResponse = AccountList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccountList; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type AccountsBeginCreateResponse = Account & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Account; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type AccountsBeginDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type AccountsListBySubscriptionNextResponse = AccountList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccountList; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type AccountsListByResourceGroupNextResponse = AccountList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccountList; + }; +}; + +/** + * Contains response data for the listInvitations operation. + */ +export type ConsumerInvitationsListInvitationsResponse = ConsumerInvitationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConsumerInvitationList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ConsumerInvitationsGetResponse = ConsumerInvitation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConsumerInvitation; + }; +}; + +/** + * Contains response data for the rejectInvitation operation. + */ +export type ConsumerInvitationsRejectInvitationResponse = ConsumerInvitation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConsumerInvitation; + }; +}; + +/** + * Contains response data for the listInvitationsNext operation. + */ +export type ConsumerInvitationsListInvitationsNextResponse = ConsumerInvitationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConsumerInvitationList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataSetsGetResponse = DataSetUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetUnion; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type DataSetsCreateResponse = DataSetUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetUnion; + }; +}; + +/** + * Contains response data for the listByShare operation. + */ +export type DataSetsListByShareResponse = DataSetList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetList; + }; +}; + +/** + * Contains response data for the listByShareNext operation. + */ +export type DataSetsListByShareNextResponse = DataSetList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DataSetMappingsGetResponse = DataSetMappingUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetMappingUnion; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type DataSetMappingsCreateResponse = DataSetMappingUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetMappingUnion; + }; +}; + +/** + * Contains response data for the listByShareSubscription operation. + */ +export type DataSetMappingsListByShareSubscriptionResponse = DataSetMappingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetMappingList; + }; +}; + +/** + * Contains response data for the listByShareSubscriptionNext operation. + */ +export type DataSetMappingsListByShareSubscriptionNextResponse = DataSetMappingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DataSetMappingList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type InvitationsGetResponse = Invitation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Invitation; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type InvitationsCreateResponse = Invitation & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Invitation; + }; +}; + +/** + * Contains response data for the listByShare operation. + */ +export type InvitationsListByShareResponse = InvitationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InvitationList; + }; +}; + +/** + * Contains response data for the listByShareNext operation. + */ +export type InvitationsListByShareNextResponse = InvitationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: InvitationList; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; +}; + +/** + * Contains response data for the listSynchronizationDetails operation. + */ +export type SharesListSynchronizationDetailsResponse = SynchronizationDetailsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationDetailsList; + }; +}; + +/** + * Contains response data for the listSynchronizations operation. + */ +export type SharesListSynchronizationsResponse = ShareSynchronizationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSynchronizationList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SharesGetResponse = Share & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Share; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type SharesCreateResponse = Share & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Share; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type SharesDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type SharesListByAccountResponse = ShareList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareList; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type SharesBeginDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listSynchronizationDetailsNext operation. + */ +export type SharesListSynchronizationDetailsNextResponse = SynchronizationDetailsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationDetailsList; + }; +}; + +/** + * Contains response data for the listSynchronizationsNext operation. + */ +export type SharesListSynchronizationsNextResponse = ShareSynchronizationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSynchronizationList; + }; +}; + +/** + * Contains response data for the listByAccountNext operation. + */ +export type SharesListByAccountNextResponse = ShareList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareList; + }; +}; + +/** + * Contains response data for the reinstate operation. + */ +export type ProviderShareSubscriptionsReinstateResponse = ProviderShareSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProviderShareSubscription; + }; +}; + +/** + * Contains response data for the revoke operation. + */ +export type ProviderShareSubscriptionsRevokeResponse = ProviderShareSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProviderShareSubscription; + }; +}; + +/** + * Contains response data for the getByShare operation. + */ +export type ProviderShareSubscriptionsGetByShareResponse = ProviderShareSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProviderShareSubscription; + }; +}; + +/** + * Contains response data for the listByShare operation. + */ +export type ProviderShareSubscriptionsListByShareResponse = ProviderShareSubscriptionList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProviderShareSubscriptionList; + }; +}; + +/** + * Contains response data for the beginRevoke operation. + */ +export type ProviderShareSubscriptionsBeginRevokeResponse = ProviderShareSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProviderShareSubscription; + }; +}; + +/** + * Contains response data for the listByShareNext operation. + */ +export type ProviderShareSubscriptionsListByShareNextResponse = ProviderShareSubscriptionList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProviderShareSubscriptionList; + }; +}; + +/** + * Contains response data for the cancelSynchronization operation. + */ +export type ShareSubscriptionsCancelSynchronizationResponse = ShareSubscriptionSynchronization & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionSynchronization; + }; +}; + +/** + * Contains response data for the listSourceShareSynchronizationSettings operation. + */ +export type ShareSubscriptionsListSourceShareSynchronizationSettingsResponse = SourceShareSynchronizationSettingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceShareSynchronizationSettingList; + }; +}; + +/** + * Contains response data for the listSynchronizationDetails operation. + */ +export type ShareSubscriptionsListSynchronizationDetailsResponse = SynchronizationDetailsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationDetailsList; + }; +}; + +/** + * Contains response data for the listSynchronizations operation. + */ +export type ShareSubscriptionsListSynchronizationsResponse = ShareSubscriptionSynchronizationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionSynchronizationList; + }; +}; + +/** + * Contains response data for the synchronizeMethod operation. + */ +export type ShareSubscriptionsSynchronizeMethodResponse = ShareSubscriptionSynchronization & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionSynchronization; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ShareSubscriptionsGetResponse = ShareSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscription; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type ShareSubscriptionsCreateResponse = ShareSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscription; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ShareSubscriptionsDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listByAccount operation. + */ +export type ShareSubscriptionsListByAccountResponse = ShareSubscriptionList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionList; + }; +}; + +/** + * Contains response data for the beginCancelSynchronization operation. + */ +export type ShareSubscriptionsBeginCancelSynchronizationResponse = ShareSubscriptionSynchronization & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionSynchronization; + }; +}; + +/** + * Contains response data for the beginSynchronizeMethod operation. + */ +export type ShareSubscriptionsBeginSynchronizeMethodResponse = ShareSubscriptionSynchronization & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionSynchronization; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type ShareSubscriptionsBeginDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listSourceShareSynchronizationSettingsNext operation. + */ +export type ShareSubscriptionsListSourceShareSynchronizationSettingsNextResponse = SourceShareSynchronizationSettingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceShareSynchronizationSettingList; + }; +}; + +/** + * Contains response data for the listSynchronizationDetailsNext operation. + */ +export type ShareSubscriptionsListSynchronizationDetailsNextResponse = SynchronizationDetailsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationDetailsList; + }; +}; + +/** + * Contains response data for the listSynchronizationsNext operation. + */ +export type ShareSubscriptionsListSynchronizationsNextResponse = ShareSubscriptionSynchronizationList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionSynchronizationList; + }; +}; + +/** + * Contains response data for the listByAccountNext operation. + */ +export type ShareSubscriptionsListByAccountNextResponse = ShareSubscriptionList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ShareSubscriptionList; + }; +}; + +/** + * Contains response data for the listByShareSubscription operation. + */ +export type ConsumerSourceDataSetsListByShareSubscriptionResponse = ConsumerSourceDataSetList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConsumerSourceDataSetList; + }; +}; + +/** + * Contains response data for the listByShareSubscriptionNext operation. + */ +export type ConsumerSourceDataSetsListByShareSubscriptionNextResponse = ConsumerSourceDataSetList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConsumerSourceDataSetList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SynchronizationSettingsGetResponse = SynchronizationSettingUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationSettingUnion; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type SynchronizationSettingsCreateResponse = SynchronizationSettingUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationSettingUnion; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type SynchronizationSettingsDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listByShare operation. + */ +export type SynchronizationSettingsListByShareResponse = SynchronizationSettingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationSettingList; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type SynchronizationSettingsBeginDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listByShareNext operation. + */ +export type SynchronizationSettingsListByShareNextResponse = SynchronizationSettingList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SynchronizationSettingList; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type TriggersGetResponse = TriggerUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggerUnion; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type TriggersCreateResponse = TriggerUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggerUnion; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type TriggersDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listByShareSubscription operation. + */ +export type TriggersListByShareSubscriptionResponse = TriggerList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggerList; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type TriggersBeginCreateResponse = TriggerUnion & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggerUnion; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type TriggersBeginDeleteMethodResponse = OperationResponse & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationResponse; + }; +}; + +/** + * Contains response data for the listByShareSubscriptionNext operation. + */ +export type TriggersListByShareSubscriptionNextResponse = TriggerList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: TriggerList; + }; +}; diff --git a/sdk/datashare/arm-datashare/src/models/invitationsMappers.ts b/sdk/datashare/arm-datashare/src/models/invitationsMappers.ts new file mode 100644 index 000000000000..fb5402c69351 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/invitationsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + InvitationList, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/mappers.ts b/sdk/datashare/arm-datashare/src/models/mappers.ts new file mode 100644 index 000000000000..19a0bd68bd72 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/mappers.ts @@ -0,0 +1,3234 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const Identity: msRest.CompositeMapper = { + serializedName: "Identity", + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const DefaultDto: msRest.CompositeMapper = { + serializedName: "DefaultDto", + type: { + name: "Composite", + className: "DefaultDto", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const Account: msRest.CompositeMapper = { + serializedName: "Account", + type: { + name: "Composite", + className: "Account", + modelProperties: { + ...DefaultDto.type.modelProperties, + identity: { + required: true, + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + }, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + userEmail: { + readOnly: true, + serializedName: "properties.userEmail", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const DataShareErrorInfo: msRest.CompositeMapper = { + serializedName: "DataShareErrorInfo", + type: { + name: "Composite", + className: "DataShareErrorInfo", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataShareErrorInfo" + } + } + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const DataShareError: msRest.CompositeMapper = { + serializedName: "DataShareError", + type: { + name: "Composite", + className: "DataShareError", + modelProperties: { + error: { + required: true, + serializedName: "error", + type: { + name: "Composite", + className: "DataShareErrorInfo" + } + } + } + } +}; + +export const OperationResponse: msRest.CompositeMapper = { + serializedName: "OperationResponse", + type: { + name: "Composite", + className: "OperationResponse", + modelProperties: { + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "DataShareErrorInfo" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const AccountUpdateParameters: msRest.CompositeMapper = { + serializedName: "AccountUpdateParameters", + type: { + name: "Composite", + className: "AccountUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ProxyDto: msRest.CompositeMapper = { + serializedName: "ProxyDto", + type: { + name: "Composite", + className: "ProxyDto", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ConsumerInvitation: msRest.CompositeMapper = { + serializedName: "ConsumerInvitation", + type: { + name: "Composite", + className: "ConsumerInvitation", + modelProperties: { + ...ProxyDto.type.modelProperties, + dataSetCount: { + readOnly: true, + serializedName: "properties.dataSetCount", + type: { + name: "Number" + } + }, + description: { + readOnly: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + invitationId: { + required: true, + serializedName: "properties.invitationId", + type: { + name: "String" + } + }, + invitationStatus: { + readOnly: true, + serializedName: "properties.invitationStatus", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + providerEmail: { + readOnly: true, + serializedName: "properties.providerEmail", + type: { + name: "String" + } + }, + providerName: { + readOnly: true, + serializedName: "properties.providerName", + type: { + name: "String" + } + }, + providerTenantName: { + readOnly: true, + serializedName: "properties.providerTenantName", + type: { + name: "String" + } + }, + respondedAt: { + readOnly: true, + serializedName: "properties.respondedAt", + type: { + name: "DateTime" + } + }, + sentAt: { + readOnly: true, + serializedName: "properties.sentAt", + type: { + name: "DateTime" + } + }, + shareName: { + readOnly: true, + serializedName: "properties.shareName", + type: { + name: "String" + } + }, + termsOfUse: { + readOnly: true, + serializedName: "properties.termsOfUse", + type: { + name: "String" + } + }, + userEmail: { + readOnly: true, + serializedName: "properties.userEmail", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const DataSet: msRest.CompositeMapper = { + serializedName: "DataSet", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "DataSet", + className: "DataSet", + modelProperties: { + ...ProxyDto.type.modelProperties, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const DataSetMapping: msRest.CompositeMapper = { + serializedName: "DataSetMapping", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "DataSetMapping", + className: "DataSetMapping", + modelProperties: { + ...ProxyDto.type.modelProperties, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const Invitation: msRest.CompositeMapper = { + serializedName: "Invitation", + type: { + name: "Composite", + className: "Invitation", + modelProperties: { + ...ProxyDto.type.modelProperties, + invitationId: { + readOnly: true, + serializedName: "properties.invitationId", + type: { + name: "String" + } + }, + invitationStatus: { + readOnly: true, + serializedName: "properties.invitationStatus", + type: { + name: "String" + } + }, + respondedAt: { + readOnly: true, + serializedName: "properties.respondedAt", + type: { + name: "DateTime" + } + }, + sentAt: { + readOnly: true, + serializedName: "properties.sentAt", + type: { + name: "DateTime" + } + }, + targetActiveDirectoryId: { + serializedName: "properties.targetActiveDirectoryId", + type: { + name: "String" + } + }, + targetEmail: { + serializedName: "properties.targetEmail", + type: { + name: "String" + } + }, + targetObjectId: { + serializedName: "properties.targetObjectId", + type: { + name: "String" + } + }, + userEmail: { + readOnly: true, + serializedName: "properties.userEmail", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const OperationModelProperties: msRest.CompositeMapper = { + serializedName: "OperationModelProperties", + type: { + name: "Composite", + className: "OperationModelProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + } + } + } +}; + +export const OperationMetaLogSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaLogSpecification", + type: { + name: "Composite", + className: "OperationMetaLogSpecification", + modelProperties: { + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const DimensionProperties: msRest.CompositeMapper = { + serializedName: "DimensionProperties", + type: { + name: "Composite", + className: "DimensionProperties", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const OperationMetaMetricSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaMetricSpecification", + type: { + name: "Composite", + className: "OperationMetaMetricSpecification", + modelProperties: { + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DimensionProperties" + } + } + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + enableRegionalMdmAccount: { + serializedName: "enableRegionalMdmAccount", + type: { + name: "String" + } + }, + internalMetricName: { + serializedName: "internalMetricName", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + resourceIdDimensionNameOverride: { + serializedName: "resourceIdDimensionNameOverride", + type: { + name: "String" + } + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + supportedTimeGrainTypes: { + serializedName: "supportedTimeGrainTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + } + } + } +}; + +export const OperationMetaServiceSpecification: msRest.CompositeMapper = { + serializedName: "OperationMetaServiceSpecification", + type: { + name: "Composite", + className: "OperationMetaServiceSpecification", + modelProperties: { + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetaLogSpecification" + } + } + } + }, + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetaMetricSpecification" + } + } + } + } + } + } +}; + +export const OperationModel: msRest.CompositeMapper = { + serializedName: "OperationModel", + type: { + name: "Composite", + className: "OperationModel", + modelProperties: { + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationModelProperties" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + serviceSpecification: { + serializedName: "properties.serviceSpecification", + type: { + name: "Composite", + className: "OperationMetaServiceSpecification" + } + } + } + } +}; + +export const ShareSynchronization: msRest.CompositeMapper = { + serializedName: "ShareSynchronization", + type: { + name: "Composite", + className: "ShareSynchronization", + modelProperties: { + consumerEmail: { + serializedName: "consumerEmail", + type: { + name: "String" + } + }, + consumerName: { + serializedName: "consumerName", + type: { + name: "String" + } + }, + consumerTenantName: { + serializedName: "consumerTenantName", + type: { + name: "String" + } + }, + durationMs: { + serializedName: "durationMs", + type: { + name: "Number" + } + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + synchronizationId: { + serializedName: "synchronizationId", + type: { + name: "String" + } + }, + synchronizationMode: { + readOnly: true, + serializedName: "synchronizationMode", + type: { + name: "String" + } + } + } + } +}; + +export const SynchronizationDetails: msRest.CompositeMapper = { + serializedName: "SynchronizationDetails", + type: { + name: "Composite", + className: "SynchronizationDetails", + modelProperties: { + dataSetId: { + readOnly: true, + serializedName: "dataSetId", + type: { + name: "String" + } + }, + dataSetType: { + readOnly: true, + serializedName: "dataSetType", + type: { + name: "String" + } + }, + durationMs: { + readOnly: true, + serializedName: "durationMs", + type: { + name: "Number" + } + }, + endTime: { + readOnly: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + filesRead: { + readOnly: true, + serializedName: "filesRead", + type: { + name: "Number" + } + }, + filesWritten: { + readOnly: true, + serializedName: "filesWritten", + type: { + name: "Number" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + rowsCopied: { + readOnly: true, + serializedName: "rowsCopied", + type: { + name: "Number" + } + }, + rowsRead: { + readOnly: true, + serializedName: "rowsRead", + type: { + name: "Number" + } + }, + sizeRead: { + readOnly: true, + serializedName: "sizeRead", + type: { + name: "Number" + } + }, + sizeWritten: { + readOnly: true, + serializedName: "sizeWritten", + type: { + name: "Number" + } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + vCore: { + readOnly: true, + serializedName: "vCore", + type: { + name: "Number" + } + } + } + } +}; + +export const ProviderShareSubscription: msRest.CompositeMapper = { + serializedName: "ProviderShareSubscription", + type: { + name: "Composite", + className: "ProviderShareSubscription", + modelProperties: { + ...ProxyDto.type.modelProperties, + consumerEmail: { + readOnly: true, + serializedName: "properties.consumerEmail", + type: { + name: "String" + } + }, + consumerName: { + readOnly: true, + serializedName: "properties.consumerName", + type: { + name: "String" + } + }, + consumerTenantName: { + readOnly: true, + serializedName: "properties.consumerTenantName", + type: { + name: "String" + } + }, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + providerEmail: { + readOnly: true, + serializedName: "properties.providerEmail", + type: { + name: "String" + } + }, + providerName: { + readOnly: true, + serializedName: "properties.providerName", + type: { + name: "String" + } + }, + sharedAt: { + readOnly: true, + serializedName: "properties.sharedAt", + type: { + name: "DateTime" + } + }, + shareSubscriptionObjectId: { + readOnly: true, + serializedName: "properties.shareSubscriptionObjectId", + type: { + name: "String" + } + }, + shareSubscriptionStatus: { + readOnly: true, + serializedName: "properties.shareSubscriptionStatus", + type: { + name: "String" + } + } + } + } +}; + +export const Share: msRest.CompositeMapper = { + serializedName: "Share", + type: { + name: "Composite", + className: "Share", + modelProperties: { + ...ProxyDto.type.modelProperties, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + shareKind: { + serializedName: "properties.shareKind", + type: { + name: "String" + } + }, + terms: { + serializedName: "properties.terms", + type: { + name: "String" + } + }, + userEmail: { + readOnly: true, + serializedName: "properties.userEmail", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const ShareSubscriptionSynchronization: msRest.CompositeMapper = { + serializedName: "ShareSubscriptionSynchronization", + type: { + name: "Composite", + className: "ShareSubscriptionSynchronization", + modelProperties: { + durationMs: { + readOnly: true, + serializedName: "durationMs", + type: { + name: "Number" + } + }, + endTime: { + readOnly: true, + serializedName: "endTime", + type: { + name: "DateTime" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "DateTime" + } + }, + status: { + readOnly: true, + serializedName: "status", + type: { + name: "String" + } + }, + synchronizationId: { + required: true, + serializedName: "synchronizationId", + type: { + name: "String" + } + }, + synchronizationMode: { + readOnly: true, + serializedName: "synchronizationMode", + type: { + name: "String" + } + } + } + } +}; + +export const ConsumerSourceDataSet: msRest.CompositeMapper = { + serializedName: "ConsumerSourceDataSet", + type: { + name: "Composite", + className: "ConsumerSourceDataSet", + modelProperties: { + ...ProxyDto.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetLocation: { + readOnly: true, + serializedName: "properties.dataSetLocation", + type: { + name: "String" + } + }, + dataSetName: { + readOnly: true, + serializedName: "properties.dataSetName", + type: { + name: "String" + } + }, + dataSetPath: { + readOnly: true, + serializedName: "properties.dataSetPath", + type: { + name: "String" + } + }, + dataSetType: { + readOnly: true, + serializedName: "properties.dataSetType", + type: { + name: "String" + } + } + } + } +}; + +export const SourceShareSynchronizationSetting: msRest.CompositeMapper = { + serializedName: "SourceShareSynchronizationSetting", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "SourceShareSynchronizationSetting", + className: "SourceShareSynchronizationSetting", + modelProperties: { + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const Synchronize: msRest.CompositeMapper = { + serializedName: "Synchronize", + type: { + name: "Composite", + className: "Synchronize", + modelProperties: { + synchronizationMode: { + serializedName: "synchronizationMode", + type: { + name: "String" + } + } + } + } +}; + +export const ShareSubscription: msRest.CompositeMapper = { + serializedName: "ShareSubscription", + type: { + name: "Composite", + className: "ShareSubscription", + modelProperties: { + ...ProxyDto.type.modelProperties, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + invitationId: { + required: true, + serializedName: "properties.invitationId", + type: { + name: "String" + } + }, + providerEmail: { + readOnly: true, + serializedName: "properties.providerEmail", + type: { + name: "String" + } + }, + providerName: { + readOnly: true, + serializedName: "properties.providerName", + type: { + name: "String" + } + }, + providerTenantName: { + readOnly: true, + serializedName: "properties.providerTenantName", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + shareDescription: { + readOnly: true, + serializedName: "properties.shareDescription", + type: { + name: "String" + } + }, + shareKind: { + readOnly: true, + serializedName: "properties.shareKind", + type: { + name: "String" + } + }, + shareName: { + readOnly: true, + serializedName: "properties.shareName", + type: { + name: "String" + } + }, + shareSubscriptionStatus: { + readOnly: true, + serializedName: "properties.shareSubscriptionStatus", + type: { + name: "String" + } + }, + shareTerms: { + readOnly: true, + serializedName: "properties.shareTerms", + type: { + name: "String" + } + }, + sourceShareLocation: { + required: true, + serializedName: "properties.sourceShareLocation", + type: { + name: "String" + } + }, + userEmail: { + readOnly: true, + serializedName: "properties.userEmail", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const SynchronizationSetting: msRest.CompositeMapper = { + serializedName: "SynchronizationSetting", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "SynchronizationSetting", + className: "SynchronizationSetting", + modelProperties: { + ...ProxyDto.type.modelProperties, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const Trigger: msRest.CompositeMapper = { + serializedName: "Trigger", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "Trigger", + className: "Trigger", + modelProperties: { + ...ProxyDto.type.modelProperties, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const ScheduledSynchronizationSetting: msRest.CompositeMapper = { + serializedName: "ScheduleBased", + type: { + name: "Composite", + polymorphicDiscriminator: SynchronizationSetting.type.polymorphicDiscriminator, + uberParent: "SynchronizationSetting", + className: "ScheduledSynchronizationSetting", + modelProperties: { + ...SynchronizationSetting.type.modelProperties, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + recurrenceInterval: { + required: true, + serializedName: "properties.recurrenceInterval", + type: { + name: "String" + } + }, + synchronizationTime: { + required: true, + serializedName: "properties.synchronizationTime", + type: { + name: "DateTime" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const ScheduledTrigger: msRest.CompositeMapper = { + serializedName: "ScheduleBased", + type: { + name: "Composite", + polymorphicDiscriminator: Trigger.type.polymorphicDiscriminator, + uberParent: "Trigger", + className: "ScheduledTrigger", + modelProperties: { + ...Trigger.type.modelProperties, + createdAt: { + readOnly: true, + serializedName: "properties.createdAt", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + recurrenceInterval: { + required: true, + serializedName: "properties.recurrenceInterval", + type: { + name: "String" + } + }, + synchronizationMode: { + serializedName: "properties.synchronizationMode", + type: { + name: "String" + } + }, + synchronizationTime: { + required: true, + serializedName: "properties.synchronizationTime", + type: { + name: "DateTime" + } + }, + triggerStatus: { + readOnly: true, + serializedName: "properties.triggerStatus", + type: { + name: "String" + } + }, + userName: { + readOnly: true, + serializedName: "properties.userName", + type: { + name: "String" + } + } + } + } +}; + +export const BlobDataSet: msRest.CompositeMapper = { + serializedName: "Blob", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "BlobDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + containerName: { + required: true, + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + filePath: { + required: true, + serializedName: "properties.filePath", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const BlobFolderDataSet: msRest.CompositeMapper = { + serializedName: "BlobFolder", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "BlobFolderDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + containerName: { + required: true, + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + prefix: { + required: true, + serializedName: "properties.prefix", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const BlobContainerDataSet: msRest.CompositeMapper = { + serializedName: "Container", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "BlobContainerDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + containerName: { + required: true, + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen2FileDataSet: msRest.CompositeMapper = { + serializedName: "AdlsGen2File", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "ADLSGen2FileDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + filePath: { + required: true, + serializedName: "properties.filePath", + type: { + name: "String" + } + }, + fileSystem: { + required: true, + serializedName: "properties.fileSystem", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen2FolderDataSet: msRest.CompositeMapper = { + serializedName: "AdlsGen2Folder", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "ADLSGen2FolderDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + fileSystem: { + required: true, + serializedName: "properties.fileSystem", + type: { + name: "String" + } + }, + folderPath: { + required: true, + serializedName: "properties.folderPath", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen2FileSystemDataSet: msRest.CompositeMapper = { + serializedName: "AdlsGen2FileSystem", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "ADLSGen2FileSystemDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + fileSystem: { + required: true, + serializedName: "properties.fileSystem", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen1FolderDataSet: msRest.CompositeMapper = { + serializedName: "AdlsGen1Folder", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "ADLSGen1FolderDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + accountName: { + required: true, + serializedName: "properties.accountName", + type: { + name: "String" + } + }, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + folderPath: { + required: true, + serializedName: "properties.folderPath", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen1FileDataSet: msRest.CompositeMapper = { + serializedName: "AdlsGen1File", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "ADLSGen1FileDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + accountName: { + required: true, + serializedName: "properties.accountName", + type: { + name: "String" + } + }, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + fileName: { + required: true, + serializedName: "properties.fileName", + type: { + name: "String" + } + }, + folderPath: { + required: true, + serializedName: "properties.folderPath", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const KustoClusterDataSet: msRest.CompositeMapper = { + serializedName: "KustoCluster", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "KustoClusterDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + kustoClusterResourceId: { + required: true, + serializedName: "properties.kustoClusterResourceId", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const KustoDatabaseDataSet: msRest.CompositeMapper = { + serializedName: "KustoDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "KustoDatabaseDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + kustoDatabaseResourceId: { + required: true, + serializedName: "properties.kustoDatabaseResourceId", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const SqlDWTableDataSet: msRest.CompositeMapper = { + serializedName: "SqlDWTable", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "SqlDWTableDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataWarehouseName: { + required: true, + serializedName: "properties.dataWarehouseName", + type: { + name: "String" + } + }, + schemaName: { + required: true, + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + sqlServerResourceId: { + required: true, + serializedName: "properties.sqlServerResourceId", + type: { + name: "String" + } + }, + tableName: { + required: true, + serializedName: "properties.tableName", + type: { + name: "String" + } + } + } + } +}; + +export const SqlDBTableDataSet: msRest.CompositeMapper = { + serializedName: "SqlDBTable", + type: { + name: "Composite", + polymorphicDiscriminator: DataSet.type.polymorphicDiscriminator, + uberParent: "DataSet", + className: "SqlDBTableDataSet", + modelProperties: { + ...DataSet.type.modelProperties, + databaseName: { + required: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + dataSetId: { + readOnly: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + schemaName: { + required: true, + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + sqlServerResourceId: { + required: true, + serializedName: "properties.sqlServerResourceId", + type: { + name: "String" + } + }, + tableName: { + required: true, + serializedName: "properties.tableName", + type: { + name: "String" + } + } + } + } +}; + +export const BlobDataSetMapping: msRest.CompositeMapper = { + serializedName: "Blob", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "BlobDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + containerName: { + required: true, + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + filePath: { + required: true, + serializedName: "properties.filePath", + type: { + name: "String" + } + }, + outputType: { + serializedName: "properties.outputType", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const BlobFolderDataSetMapping: msRest.CompositeMapper = { + serializedName: "BlobFolder", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "BlobFolderDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + containerName: { + required: true, + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + prefix: { + required: true, + serializedName: "properties.prefix", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const BlobContainerDataSetMapping: msRest.CompositeMapper = { + serializedName: "Container", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "BlobContainerDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + containerName: { + required: true, + serializedName: "properties.containerName", + type: { + name: "String" + } + }, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen2FileDataSetMapping: msRest.CompositeMapper = { + serializedName: "AdlsGen2File", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "ADLSGen2FileDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + filePath: { + required: true, + serializedName: "properties.filePath", + type: { + name: "String" + } + }, + fileSystem: { + required: true, + serializedName: "properties.fileSystem", + type: { + name: "String" + } + }, + outputType: { + serializedName: "properties.outputType", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen2FolderDataSetMapping: msRest.CompositeMapper = { + serializedName: "AdlsGen2Folder", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "ADLSGen2FolderDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + fileSystem: { + required: true, + serializedName: "properties.fileSystem", + type: { + name: "String" + } + }, + folderPath: { + required: true, + serializedName: "properties.folderPath", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const ADLSGen2FileSystemDataSetMapping: msRest.CompositeMapper = { + serializedName: "AdlsGen2FileSystem", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "ADLSGen2FileSystemDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + fileSystem: { + required: true, + serializedName: "properties.fileSystem", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + resourceGroup: { + required: true, + serializedName: "properties.resourceGroup", + type: { + name: "String" + } + }, + storageAccountName: { + required: true, + serializedName: "properties.storageAccountName", + type: { + name: "String" + } + }, + subscriptionId: { + required: true, + serializedName: "properties.subscriptionId", + type: { + name: "String" + } + } + } + } +}; + +export const KustoClusterDataSetMapping: msRest.CompositeMapper = { + serializedName: "KustoCluster", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "KustoClusterDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + kustoClusterResourceId: { + required: true, + serializedName: "properties.kustoClusterResourceId", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const KustoDatabaseDataSetMapping: msRest.CompositeMapper = { + serializedName: "KustoDatabase", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "KustoDatabaseDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + kustoClusterResourceId: { + required: true, + serializedName: "properties.kustoClusterResourceId", + type: { + name: "String" + } + }, + location: { + readOnly: true, + serializedName: "properties.location", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const SqlDWTableDataSetMapping: msRest.CompositeMapper = { + serializedName: "SqlDWTable", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "SqlDWTableDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + dataWarehouseName: { + required: true, + serializedName: "properties.dataWarehouseName", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + schemaName: { + required: true, + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + sqlServerResourceId: { + required: true, + serializedName: "properties.sqlServerResourceId", + type: { + name: "String" + } + }, + tableName: { + required: true, + serializedName: "properties.tableName", + type: { + name: "String" + } + } + } + } +}; + +export const SqlDBTableDataSetMapping: msRest.CompositeMapper = { + serializedName: "SqlDBTable", + type: { + name: "Composite", + polymorphicDiscriminator: DataSetMapping.type.polymorphicDiscriminator, + uberParent: "DataSetMapping", + className: "SqlDBTableDataSetMapping", + modelProperties: { + ...DataSetMapping.type.modelProperties, + databaseName: { + required: true, + serializedName: "properties.databaseName", + type: { + name: "String" + } + }, + dataSetId: { + required: true, + serializedName: "properties.dataSetId", + type: { + name: "String" + } + }, + dataSetMappingStatus: { + readOnly: true, + serializedName: "properties.dataSetMappingStatus", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + schemaName: { + required: true, + serializedName: "properties.schemaName", + type: { + name: "String" + } + }, + sqlServerResourceId: { + required: true, + serializedName: "properties.sqlServerResourceId", + type: { + name: "String" + } + }, + tableName: { + required: true, + serializedName: "properties.tableName", + type: { + name: "String" + } + } + } + } +}; + +export const ScheduledSourceSynchronizationSetting: msRest.CompositeMapper = { + serializedName: "ScheduleBased", + type: { + name: "Composite", + polymorphicDiscriminator: SourceShareSynchronizationSetting.type.polymorphicDiscriminator, + uberParent: "SourceShareSynchronizationSetting", + className: "ScheduledSourceSynchronizationSetting", + modelProperties: { + ...SourceShareSynchronizationSetting.type.modelProperties, + recurrenceInterval: { + serializedName: "properties.recurrenceInterval", + type: { + name: "String" + } + }, + synchronizationTime: { + serializedName: "properties.synchronizationTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const AccountList: msRest.CompositeMapper = { + serializedName: "AccountList", + type: { + name: "Composite", + className: "AccountList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Account" + } + } + } + } + } + } +}; + +export const ConsumerInvitationList: msRest.CompositeMapper = { + serializedName: "ConsumerInvitationList", + type: { + name: "Composite", + className: "ConsumerInvitationList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConsumerInvitation" + } + } + } + } + } + } +}; + +export const DataSetList: msRest.CompositeMapper = { + serializedName: "DataSetList", + type: { + name: "Composite", + className: "DataSetList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataSet" + } + } + } + } + } + } +}; + +export const DataSetMappingList: msRest.CompositeMapper = { + serializedName: "DataSetMappingList", + type: { + name: "Composite", + className: "DataSetMappingList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataSetMapping" + } + } + } + } + } + } +}; + +export const InvitationList: msRest.CompositeMapper = { + serializedName: "InvitationList", + type: { + name: "Composite", + className: "InvitationList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Invitation" + } + } + } + } + } + } +}; + +export const OperationList: msRest.CompositeMapper = { + serializedName: "OperationList", + type: { + name: "Composite", + className: "OperationList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationModel" + } + } + } + } + } + } +}; + +export const SynchronizationDetailsList: msRest.CompositeMapper = { + serializedName: "SynchronizationDetailsList", + type: { + name: "Composite", + className: "SynchronizationDetailsList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynchronizationDetails" + } + } + } + } + } + } +}; + +export const ShareSynchronizationList: msRest.CompositeMapper = { + serializedName: "ShareSynchronizationList", + type: { + name: "Composite", + className: "ShareSynchronizationList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ShareSynchronization" + } + } + } + } + } + } +}; + +export const ShareList: msRest.CompositeMapper = { + serializedName: "ShareList", + type: { + name: "Composite", + className: "ShareList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Share" + } + } + } + } + } + } +}; + +export const ProviderShareSubscriptionList: msRest.CompositeMapper = { + serializedName: "ProviderShareSubscriptionList", + type: { + name: "Composite", + className: "ProviderShareSubscriptionList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProviderShareSubscription" + } + } + } + } + } + } +}; + +export const SourceShareSynchronizationSettingList: msRest.CompositeMapper = { + serializedName: "SourceShareSynchronizationSettingList", + type: { + name: "Composite", + className: "SourceShareSynchronizationSettingList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceShareSynchronizationSetting" + } + } + } + } + } + } +}; + +export const ShareSubscriptionSynchronizationList: msRest.CompositeMapper = { + serializedName: "ShareSubscriptionSynchronizationList", + type: { + name: "Composite", + className: "ShareSubscriptionSynchronizationList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ShareSubscriptionSynchronization" + } + } + } + } + } + } +}; + +export const ShareSubscriptionList: msRest.CompositeMapper = { + serializedName: "ShareSubscriptionList", + type: { + name: "Composite", + className: "ShareSubscriptionList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ShareSubscription" + } + } + } + } + } + } +}; + +export const ConsumerSourceDataSetList: msRest.CompositeMapper = { + serializedName: "ConsumerSourceDataSetList", + type: { + name: "Composite", + className: "ConsumerSourceDataSetList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConsumerSourceDataSet" + } + } + } + } + } + } +}; + +export const SynchronizationSettingList: msRest.CompositeMapper = { + serializedName: "SynchronizationSettingList", + type: { + name: "Composite", + className: "SynchronizationSettingList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SynchronizationSetting" + } + } + } + } + } + } +}; + +export const TriggerList: msRest.CompositeMapper = { + serializedName: "TriggerList", + type: { + name: "Composite", + className: "TriggerList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Trigger" + } + } + } + } + } + } +}; + +export const discriminators = { + 'DataSet' : DataSet, + 'DataSetMapping' : DataSetMapping, + 'SourceShareSynchronizationSetting' : SourceShareSynchronizationSetting, + 'SynchronizationSetting' : SynchronizationSetting, + 'Trigger' : Trigger, + 'SynchronizationSetting.ScheduleBased' : ScheduledSynchronizationSetting, + 'Trigger.ScheduleBased' : ScheduledTrigger, + 'DataSet.Blob' : BlobDataSet, + 'DataSet.BlobFolder' : BlobFolderDataSet, + 'DataSet.Container' : BlobContainerDataSet, + 'DataSet.AdlsGen2File' : ADLSGen2FileDataSet, + 'DataSet.AdlsGen2Folder' : ADLSGen2FolderDataSet, + 'DataSet.AdlsGen2FileSystem' : ADLSGen2FileSystemDataSet, + 'DataSet.AdlsGen1Folder' : ADLSGen1FolderDataSet, + 'DataSet.AdlsGen1File' : ADLSGen1FileDataSet, + 'DataSet.KustoCluster' : KustoClusterDataSet, + 'DataSet.KustoDatabase' : KustoDatabaseDataSet, + 'DataSet.SqlDWTable' : SqlDWTableDataSet, + 'DataSet.SqlDBTable' : SqlDBTableDataSet, + 'DataSetMapping.Blob' : BlobDataSetMapping, + 'DataSetMapping.BlobFolder' : BlobFolderDataSetMapping, + 'DataSetMapping.Container' : BlobContainerDataSetMapping, + 'DataSetMapping.AdlsGen2File' : ADLSGen2FileDataSetMapping, + 'DataSetMapping.AdlsGen2Folder' : ADLSGen2FolderDataSetMapping, + 'DataSetMapping.AdlsGen2FileSystem' : ADLSGen2FileSystemDataSetMapping, + 'DataSetMapping.KustoCluster' : KustoClusterDataSetMapping, + 'DataSetMapping.KustoDatabase' : KustoDatabaseDataSetMapping, + 'DataSetMapping.SqlDWTable' : SqlDWTableDataSetMapping, + 'DataSetMapping.SqlDBTable' : SqlDBTableDataSetMapping, + 'SourceShareSynchronizationSetting.ScheduleBased' : ScheduledSourceSynchronizationSetting + +}; diff --git a/sdk/datashare/arm-datashare/src/models/operationsMappers.ts b/sdk/datashare/arm-datashare/src/models/operationsMappers.ts new file mode 100644 index 000000000000..7dd4cf636943 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/operationsMappers.ts @@ -0,0 +1,20 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + DataShareError, + DataShareErrorInfo, + DimensionProperties, + OperationList, + OperationMetaLogSpecification, + OperationMetaMetricSpecification, + OperationMetaServiceSpecification, + OperationModel, + OperationModelProperties +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/parameters.ts b/sdk/datashare/arm-datashare/src/models/parameters.ts new file mode 100644 index 000000000000..1c5a82fd67fa --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/parameters.ts @@ -0,0 +1,209 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const accountName: msRest.OperationURLParameter = { + parameterPath: "accountName", + mapper: { + required: true, + serializedName: "accountName", + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const dataSetMappingName: msRest.OperationURLParameter = { + parameterPath: "dataSetMappingName", + mapper: { + required: true, + serializedName: "dataSetMappingName", + type: { + name: "String" + } + } +}; +export const dataSetName: msRest.OperationURLParameter = { + parameterPath: "dataSetName", + mapper: { + required: true, + serializedName: "dataSetName", + type: { + name: "String" + } + } +}; +export const filter: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const invitationId: msRest.OperationURLParameter = { + parameterPath: "invitationId", + mapper: { + required: true, + serializedName: "invitationId", + type: { + name: "String" + } + } +}; +export const invitationName: msRest.OperationURLParameter = { + parameterPath: "invitationName", + mapper: { + required: true, + serializedName: "invitationName", + type: { + name: "String" + } + } +}; +export const location: msRest.OperationURLParameter = { + parameterPath: "location", + mapper: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "$orderby", + type: { + name: "String" + } + } +}; +export const providerShareSubscriptionId: msRest.OperationURLParameter = { + parameterPath: "providerShareSubscriptionId", + mapper: { + required: true, + serializedName: "providerShareSubscriptionId", + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const shareName: msRest.OperationURLParameter = { + parameterPath: "shareName", + mapper: { + required: true, + serializedName: "shareName", + type: { + name: "String" + } + } +}; +export const shareSubscriptionName: msRest.OperationURLParameter = { + parameterPath: "shareSubscriptionName", + mapper: { + required: true, + serializedName: "shareSubscriptionName", + type: { + name: "String" + } + } +}; +export const skipToken: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skipToken" + ], + mapper: { + serializedName: "$skipToken", + type: { + name: "String" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const synchronizationSettingName: msRest.OperationURLParameter = { + parameterPath: "synchronizationSettingName", + mapper: { + required: true, + serializedName: "synchronizationSettingName", + type: { + name: "String" + } + } +}; +export const triggerName: msRest.OperationURLParameter = { + parameterPath: "triggerName", + mapper: { + required: true, + serializedName: "triggerName", + type: { + name: "String" + } + } +}; diff --git a/sdk/datashare/arm-datashare/src/models/providerShareSubscriptionsMappers.ts b/sdk/datashare/arm-datashare/src/models/providerShareSubscriptionsMappers.ts new file mode 100644 index 000000000000..3f39f87d405a --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/providerShareSubscriptionsMappers.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + ProviderShareSubscription, + ProviderShareSubscriptionList, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/shareSubscriptionsMappers.ts b/sdk/datashare/arm-datashare/src/models/shareSubscriptionsMappers.ts new file mode 100644 index 000000000000..d35ec09d0a50 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/shareSubscriptionsMappers.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + OperationResponse, + ProviderShareSubscription, + ProxyDto, + ScheduledSourceSynchronizationSetting, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + ShareSubscriptionList, + ShareSubscriptionSynchronization, + ShareSubscriptionSynchronizationList, + SourceShareSynchronizationSetting, + SourceShareSynchronizationSettingList, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationDetails, + SynchronizationDetailsList, + SynchronizationSetting, + Synchronize, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/sharesMappers.ts b/sdk/datashare/arm-datashare/src/models/sharesMappers.ts new file mode 100644 index 000000000000..93505cf9949a --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/sharesMappers.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + OperationResponse, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareList, + ShareSubscription, + ShareSynchronization, + ShareSynchronizationList, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationDetails, + SynchronizationDetailsList, + SynchronizationSetting, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/synchronizationSettingsMappers.ts b/sdk/datashare/arm-datashare/src/models/synchronizationSettingsMappers.ts new file mode 100644 index 000000000000..1a46be69a26c --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/synchronizationSettingsMappers.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + OperationResponse, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + SynchronizationSettingList, + Trigger +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/models/triggersMappers.ts b/sdk/datashare/arm-datashare/src/models/triggersMappers.ts new file mode 100644 index 000000000000..3ca75f5ff2ac --- /dev/null +++ b/sdk/datashare/arm-datashare/src/models/triggersMappers.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + Account, + ADLSGen1FileDataSet, + ADLSGen1FolderDataSet, + ADLSGen2FileDataSet, + ADLSGen2FileDataSetMapping, + ADLSGen2FileSystemDataSet, + ADLSGen2FileSystemDataSetMapping, + ADLSGen2FolderDataSet, + ADLSGen2FolderDataSetMapping, + BaseResource, + BlobContainerDataSet, + BlobContainerDataSetMapping, + BlobDataSet, + BlobDataSetMapping, + BlobFolderDataSet, + BlobFolderDataSetMapping, + ConsumerInvitation, + ConsumerSourceDataSet, + DataSet, + DataSetMapping, + DataShareError, + DataShareErrorInfo, + DefaultDto, + Identity, + Invitation, + KustoClusterDataSet, + KustoClusterDataSetMapping, + KustoDatabaseDataSet, + KustoDatabaseDataSetMapping, + OperationResponse, + ProviderShareSubscription, + ProxyDto, + ScheduledSynchronizationSetting, + ScheduledTrigger, + Share, + ShareSubscription, + SqlDBTableDataSet, + SqlDBTableDataSetMapping, + SqlDWTableDataSet, + SqlDWTableDataSetMapping, + SynchronizationSetting, + Trigger, + TriggerList +} from "../models/mappers"; diff --git a/sdk/datashare/arm-datashare/src/operations/accounts.ts b/sdk/datashare/arm-datashare/src/operations/accounts.ts new file mode 100644 index 000000000000..f8299e80c5fb --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/accounts.ts @@ -0,0 +1,490 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/accountsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a Accounts. */ +export class Accounts { + private readonly client: DataShareManagementClientContext; + + /** + * Create a Accounts. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * List Accounts in Subscription + * @summary List Accounts in a subscription + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.AccountsListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: Models.AccountsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.AccountsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Get an account + * @summary Get an account under a resource group + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create an account + * @summary Create an account in the given resource group + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param account The account payload. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, account: Models.Account, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,account,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * DeleteAccount + * @summary Delete an account + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Patch an account + * @summary Patch a given account + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param accountUpdateParameters The account update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, accountName: string, accountUpdateParameters: Models.AccountUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param accountUpdateParameters The account update parameters. + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, accountUpdateParameters: Models.AccountUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param accountUpdateParameters The account update parameters. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, accountName: string, accountUpdateParameters: Models.AccountUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, accountName: string, accountUpdateParameters: Models.AccountUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + accountUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List Accounts in ResourceGroup + * @summary List Accounts in a resource group + * @param resourceGroupName The resource group name. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.AccountsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.AccountsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.AccountsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Create an account + * @summary Create an account in the given resource group + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param account The account payload. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, account: Models.Account, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + account, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * DeleteAccount + * @summary Delete an account + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List Accounts in Subscription + * @summary List Accounts in a subscription + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * List Accounts in ResourceGroup + * @summary List Accounts in a resource group + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccountList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Account + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "accountUpdateParameters", + mapper: { + ...Mappers.AccountUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Account + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccountList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "account", + mapper: { + ...Mappers.Account, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Account + }, + 201: { + bodyMapper: Mappers.Account + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationResponse + }, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccountList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccountList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/consumerInvitations.ts b/sdk/datashare/arm-datashare/src/operations/consumerInvitations.ts new file mode 100644 index 000000000000..48f6322f0cc6 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/consumerInvitations.ts @@ -0,0 +1,246 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/consumerInvitationsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a ConsumerInvitations. */ +export class ConsumerInvitations { + private readonly client: DataShareManagementClientContext; + + /** + * Create a ConsumerInvitations. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Lists invitations + * @summary List the invitations + * @param [options] The optional parameters + * @returns Promise + */ + listInvitations(options?: Models.ConsumerInvitationsListInvitationsOptionalParams): Promise; + /** + * @param callback The callback + */ + listInvitations(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listInvitations(options: Models.ConsumerInvitationsListInvitationsOptionalParams, callback: msRest.ServiceCallback): void; + listInvitations(options?: Models.ConsumerInvitationsListInvitationsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listInvitationsOperationSpec, + callback) as Promise; + } + + /** + * Get an invitation + * @summary Gets the invitation identified by invitationId + * @param location Location of the invitation + * @param invitationId An invitation id + * @param [options] The optional parameters + * @returns Promise + */ + get(location: string, invitationId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Location of the invitation + * @param invitationId An invitation id + * @param callback The callback + */ + get(location: string, invitationId: string, callback: msRest.ServiceCallback): void; + /** + * @param location Location of the invitation + * @param invitationId An invitation id + * @param options The optional parameters + * @param callback The callback + */ + get(location: string, invitationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(location: string, invitationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + invitationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Reject an invitation + * @summary Rejects the invitation identified by invitationId + * @param location Location of the invitation + * @param invitation An invitation payload + * @param [options] The optional parameters + * @returns Promise + */ + rejectInvitation(location: string, invitation: Models.ConsumerInvitation, options?: msRest.RequestOptionsBase): Promise; + /** + * @param location Location of the invitation + * @param invitation An invitation payload + * @param callback The callback + */ + rejectInvitation(location: string, invitation: Models.ConsumerInvitation, callback: msRest.ServiceCallback): void; + /** + * @param location Location of the invitation + * @param invitation An invitation payload + * @param options The optional parameters + * @param callback The callback + */ + rejectInvitation(location: string, invitation: Models.ConsumerInvitation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + rejectInvitation(location: string, invitation: Models.ConsumerInvitation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + invitation, + options + }, + rejectInvitationOperationSpec, + callback) as Promise; + } + + /** + * Lists invitations + * @summary List the invitations + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listInvitationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listInvitationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listInvitationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listInvitationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listInvitationsNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listInvitationsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.DataShare/ListInvitations", + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConsumerInvitationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.DataShare/locations/{location}/consumerInvitations/{invitationId}", + urlParameters: [ + Parameters.location, + Parameters.invitationId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConsumerInvitation + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const rejectInvitationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "providers/Microsoft.DataShare/locations/{location}/RejectInvitation", + urlParameters: [ + Parameters.location + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "invitation", + mapper: { + ...Mappers.ConsumerInvitation, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConsumerInvitation + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listInvitationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConsumerInvitationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/consumerSourceDataSets.ts b/sdk/datashare/arm-datashare/src/operations/consumerSourceDataSets.ts new file mode 100644 index 000000000000..be96a1372d68 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/consumerSourceDataSets.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/consumerSourceDataSetsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a ConsumerSourceDataSets. */ +export class ConsumerSourceDataSets { + private readonly client: DataShareManagementClientContext; + + /** + * Create a ConsumerSourceDataSets. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Get source dataSets of a shareSubscription + * @summary Get source dataSets of a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.ConsumerSourceDataSetsListByShareSubscriptionOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param callback The callback + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param options The optional parameters + * @param callback The callback + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options: Models.ConsumerSourceDataSetsListByShareSubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.ConsumerSourceDataSetsListByShareSubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + listByShareSubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Get source dataSets of a shareSubscription + * @summary Get source dataSets of a shareSubscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareSubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByShareSubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/ConsumerSourceDataSets", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConsumerSourceDataSetList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareSubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConsumerSourceDataSetList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/dataSetMappings.ts b/sdk/datashare/arm-datashare/src/operations/dataSetMappings.ts new file mode 100644 index 000000000000..b53863f3e787 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/dataSetMappings.ts @@ -0,0 +1,368 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataSetMappingsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a DataSetMappings. */ +export class DataSetMappings { + private readonly client: DataShareManagementClientContext; + + /** + * Create a DataSetMappings. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Get a DataSetMapping in a shareSubscription + * @summary Get DataSetMapping in a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param dataSetMappingName The name of the dataSetMapping. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param dataSetMappingName The name of the dataSetMapping. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param dataSetMappingName The name of the dataSetMapping. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + dataSetMappingName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a DataSetMapping + * @summary Maps a source data set in the source share to a sink data set in the share + * subscription. + * Enables copying the data set from source to destination. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription which will hold the data set + * sink. + * @param dataSetMappingName The name of the data set mapping to be created. + * @param dataSetMapping Destination data set configuration details. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, dataSetMapping: Models.DataSetMappingUnion, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription which will hold the data set + * sink. + * @param dataSetMappingName The name of the data set mapping to be created. + * @param dataSetMapping Destination data set configuration details. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, dataSetMapping: Models.DataSetMappingUnion, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription which will hold the data set + * sink. + * @param dataSetMappingName The name of the data set mapping to be created. + * @param dataSetMapping Destination data set configuration details. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, dataSetMapping: Models.DataSetMappingUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, dataSetMapping: Models.DataSetMappingUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + dataSetMappingName, + dataSetMapping, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a DataSetMapping in a shareSubscription + * @summary Delete DataSetMapping in a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param dataSetMappingName The name of the dataSetMapping. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param dataSetMappingName The name of the dataSetMapping. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param dataSetMappingName The name of the dataSetMapping. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, dataSetMappingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + dataSetMappingName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * List DataSetMappings in a share subscription + * @summary List DataSetMappings in a share subscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.DataSetMappingsListByShareSubscriptionOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param callback The callback + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options: Models.DataSetMappingsListByShareSubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.DataSetMappingsListByShareSubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + listByShareSubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List DataSetMappings in a share subscription + * @summary List DataSetMappings in a share subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareSubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName, + Parameters.dataSetMappingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataSetMapping + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName, + Parameters.dataSetMappingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "dataSetMapping", + mapper: { + ...Mappers.DataSetMapping, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataSetMapping + }, + 201: { + bodyMapper: Mappers.DataSetMapping + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName, + Parameters.dataSetMappingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareSubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataSetMappingList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareSubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataSetMappingList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/dataSets.ts b/sdk/datashare/arm-datashare/src/operations/dataSets.ts new file mode 100644 index 000000000000..eff76c342281 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/dataSets.ts @@ -0,0 +1,362 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/dataSetsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a DataSets. */ +export class DataSets { + private readonly client: DataShareManagementClientContext; + + /** + * Create a DataSets. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Get a DataSet in a share + * @summary Get DataSet in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param dataSetName The name of the dataSet. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param dataSetName The name of the dataSet. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param dataSetName The name of the dataSet. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + dataSetName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a DataSet + * @summary Adds a new data set to an existing share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to add the data set to. + * @param dataSetName The name of the dataSet. + * @param dataSet The new data set information. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, dataSet: Models.DataSetUnion, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to add the data set to. + * @param dataSetName The name of the dataSet. + * @param dataSet The new data set information. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, dataSet: Models.DataSetUnion, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to add the data set to. + * @param dataSetName The name of the dataSet. + * @param dataSet The new data set information. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, dataSet: Models.DataSetUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, dataSet: Models.DataSetUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + dataSetName, + dataSet, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a DataSet in a share + * @summary Delete DataSet in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param dataSetName The name of the dataSet. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,shareName,dataSetName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * List DataSets in a share + * @summary List DataSets in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.DataSetsListByShareOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param options The optional parameters + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options: Models.DataSetsListByShareOptionalParams, callback: msRest.ServiceCallback): void; + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.DataSetsListByShareOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + listByShareOperationSpec, + callback) as Promise; + } + + /** + * Delete a DataSet in a share + * @summary Delete DataSet in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param dataSetName The name of the dataSet. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, shareName: string, dataSetName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareName, + dataSetName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List DataSets in a share + * @summary List DataSets in a share. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.dataSetName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataSet + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.dataSetName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "dataSet", + mapper: { + ...Mappers.DataSet, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataSet + }, + 201: { + bodyMapper: Mappers.DataSet + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataSetList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.dataSetName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataSetList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/index.ts b/sdk/datashare/arm-datashare/src/operations/index.ts new file mode 100644 index 000000000000..eaea48d4c138 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/index.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export * from "./accounts"; +export * from "./consumerInvitations"; +export * from "./dataSets"; +export * from "./dataSetMappings"; +export * from "./invitations"; +export * from "./operations"; +export * from "./shares"; +export * from "./providerShareSubscriptions"; +export * from "./shareSubscriptions"; +export * from "./consumerSourceDataSets"; +export * from "./synchronizationSettings"; +export * from "./triggers"; diff --git a/sdk/datashare/arm-datashare/src/operations/invitations.ts b/sdk/datashare/arm-datashare/src/operations/invitations.ts new file mode 100644 index 000000000000..56a05021a264 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/invitations.ts @@ -0,0 +1,363 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/invitationsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a Invitations. */ +export class Invitations { + private readonly client: DataShareManagementClientContext; + + /** + * Create a Invitations. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Get an invitation in a share + * @summary Get Invitation in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param invitationName The name of the invitation. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param invitationName The name of the invitation. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param invitationName The name of the invitation. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + invitationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create an invitation + * @summary Sends a new invitation to a recipient to access a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to send the invitation for. + * @param invitationName The name of the invitation. + * @param invitation Invitation details. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, invitation: Models.Invitation, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to send the invitation for. + * @param invitationName The name of the invitation. + * @param invitation Invitation details. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, invitation: Models.Invitation, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to send the invitation for. + * @param invitationName The name of the invitation. + * @param invitation Invitation details. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, invitation: Models.Invitation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, invitation: Models.Invitation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + invitationName, + invitation, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete an invitation in a share + * @summary Delete Invitation in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param invitationName The name of the invitation. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param invitationName The name of the invitation. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param invitationName The name of the invitation. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, invitationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + invitationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * List invitations in a share + * @summary List all Invitations in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.InvitationsListByShareOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param options The optional parameters + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options: Models.InvitationsListByShareOptionalParams, callback: msRest.ServiceCallback): void; + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.InvitationsListByShareOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + listByShareOperationSpec, + callback) as Promise; + } + + /** + * List invitations in a share + * @summary List all Invitations in a share. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.invitationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Invitation + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.invitationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "invitation", + mapper: { + ...Mappers.Invitation, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Invitation + }, + 201: { + bodyMapper: Mappers.Invitation + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.invitationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.InvitationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.InvitationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/operations.ts b/sdk/datashare/arm-datashare/src/operations/operations.ts new file mode 100644 index 000000000000..29c079de0d8f --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/operations.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/operationsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a Operations. */ +export class Operations { + private readonly client: DataShareManagementClientContext; + + /** + * Create a Operations. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * List of available operations + * @summary Lists the available operations + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List of available operations + * @summary Lists the available operations + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.DataShare/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/providerShareSubscriptions.ts b/sdk/datashare/arm-datashare/src/operations/providerShareSubscriptions.ts new file mode 100644 index 000000000000..990f44262932 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/providerShareSubscriptions.ts @@ -0,0 +1,349 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/providerShareSubscriptionsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a ProviderShareSubscriptions. */ +export class ProviderShareSubscriptions { + private readonly client: DataShareManagementClientContext; + + /** + * Create a ProviderShareSubscriptions. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Reinstate share subscription in a provider share + * @summary Reinstate share subscription in a provider share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param [options] The optional parameters + * @returns Promise + */ + reinstate(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param callback The callback + */ + reinstate(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param options The optional parameters + * @param callback The callback + */ + reinstate(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + reinstate(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + providerShareSubscriptionId, + options + }, + reinstateOperationSpec, + callback) as Promise; + } + + /** + * Revoke share subscription in a provider share + * @summary Revoke share subscription in a provider share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param [options] The optional parameters + * @returns Promise + */ + revoke(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginRevoke(resourceGroupName,accountName,shareName,providerShareSubscriptionId,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get share subscription in a provider share + * @summary Get share subscription in a provider share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param [options] The optional parameters + * @returns Promise + */ + getByShare(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param callback The callback + */ + getByShare(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param options The optional parameters + * @param callback The callback + */ + getByShare(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByShare(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + providerShareSubscriptionId, + options + }, + getByShareOperationSpec, + callback) as Promise; + } + + /** + * List share subscriptions in a provider share + * @summary List of available share subscriptions to a provider share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.ProviderShareSubscriptionsListByShareOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param options The optional parameters + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options: Models.ProviderShareSubscriptionsListByShareOptionalParams, callback: msRest.ServiceCallback): void; + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.ProviderShareSubscriptionsListByShareOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + listByShareOperationSpec, + callback) as Promise; + } + + /** + * Revoke share subscription in a provider share + * @summary Revoke share subscription in a provider share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param providerShareSubscriptionId To locate shareSubscription + * @param [options] The optional parameters + * @returns Promise + */ + beginRevoke(resourceGroupName: string, accountName: string, shareName: string, providerShareSubscriptionId: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareName, + providerShareSubscriptionId, + options + }, + beginRevokeOperationSpec, + options); + } + + /** + * List share subscriptions in a provider share + * @summary List of available share subscriptions to a provider share. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const reinstateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/reinstate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.providerShareSubscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProviderShareSubscription + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const getByShareOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.providerShareSubscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProviderShareSubscription + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProviderShareSubscriptionList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginRevokeOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.providerShareSubscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProviderShareSubscription + }, + 202: { + bodyMapper: Mappers.ProviderShareSubscription + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProviderShareSubscriptionList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/shareSubscriptions.ts b/sdk/datashare/arm-datashare/src/operations/shareSubscriptions.ts new file mode 100644 index 000000000000..9420b91d5163 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/shareSubscriptions.ts @@ -0,0 +1,850 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/shareSubscriptionsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a ShareSubscriptions. */ +export class ShareSubscriptions { + private readonly client: DataShareManagementClientContext; + + /** + * Create a ShareSubscriptions. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Request to cancel a synchronization. + * @summary Request cancellation of a data share snapshot + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param shareSubscriptionSynchronization Share Subscription Synchronization payload. + * @param [options] The optional parameters + * @returns Promise + */ + cancelSynchronization(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscriptionSynchronization: Models.ShareSubscriptionSynchronization, options?: msRest.RequestOptionsBase): Promise { + return this.beginCancelSynchronization(resourceGroupName,accountName,shareSubscriptionName,shareSubscriptionSynchronization,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get synchronization settings set on a share + * @summary Get source share synchronization settings for a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param [options] The optional parameters + * @returns Promise + */ + listSourceShareSynchronizationSettings(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.ShareSubscriptionsListSourceShareSynchronizationSettingsOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param callback The callback + */ + listSourceShareSynchronizationSettings(resourceGroupName: string, accountName: string, shareSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param options The optional parameters + * @param callback The callback + */ + listSourceShareSynchronizationSettings(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options: Models.ShareSubscriptionsListSourceShareSynchronizationSettingsOptionalParams, callback: msRest.ServiceCallback): void; + listSourceShareSynchronizationSettings(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.ShareSubscriptionsListSourceShareSynchronizationSettingsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + listSourceShareSynchronizationSettingsOperationSpec, + callback) as Promise; + } + + /** + * List synchronization details + * @summary List data set level details for a share subscription synchronization + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param shareSubscriptionSynchronization Share Subscription Synchronization payload. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscriptionSynchronization: Models.ShareSubscriptionSynchronization, options?: Models.ShareSubscriptionsListSynchronizationDetailsOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param shareSubscriptionSynchronization Share Subscription Synchronization payload. + * @param callback The callback + */ + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscriptionSynchronization: Models.ShareSubscriptionSynchronization, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param shareSubscriptionSynchronization Share Subscription Synchronization payload. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscriptionSynchronization: Models.ShareSubscriptionSynchronization, options: Models.ShareSubscriptionsListSynchronizationDetailsOptionalParams, callback: msRest.ServiceCallback): void; + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscriptionSynchronization: Models.ShareSubscriptionSynchronization, options?: Models.ShareSubscriptionsListSynchronizationDetailsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + shareSubscriptionSynchronization, + options + }, + listSynchronizationDetailsOperationSpec, + callback) as Promise; + } + + /** + * List synchronizations of a share subscription + * @summary List Synchronizations in a share subscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizations(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.ShareSubscriptionsListSynchronizationsOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param callback The callback + */ + listSynchronizations(resourceGroupName: string, accountName: string, shareSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizations(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options: Models.ShareSubscriptionsListSynchronizationsOptionalParams, callback: msRest.ServiceCallback): void; + listSynchronizations(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.ShareSubscriptionsListSynchronizationsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + listSynchronizationsOperationSpec, + callback) as Promise; + } + + /** + * Initiate a copy + * @summary Initiate an asynchronous data share job + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of share subscription + * @param synchronize Synchronize payload + * @param [options] The optional parameters + * @returns Promise + */ + synchronizeMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, synchronize: Models.Synchronize, options?: msRest.RequestOptionsBase): Promise { + return this.beginSynchronizeMethod(resourceGroupName,accountName,shareSubscriptionName,synchronize,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get a shareSubscription in an account + * @summary Get shareSubscription in an account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a shareSubscription in an account + * @summary Create shareSubscription in an account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param shareSubscription create parameters for shareSubscription + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscription: Models.ShareSubscription, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param shareSubscription create parameters for shareSubscription + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscription: Models.ShareSubscription, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param shareSubscription create parameters for shareSubscription + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscription: Models.ShareSubscription, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscription: Models.ShareSubscription, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + shareSubscription, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a shareSubscription in an account + * @summary Delete shareSubscription in an account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,shareSubscriptionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List share subscriptions in an account + * @summary List of available share subscriptions under an account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: Models.ShareSubscriptionsListByAccountOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: Models.ShareSubscriptionsListByAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: Models.ShareSubscriptionsListByAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } + + /** + * Request to cancel a synchronization. + * @summary Request cancellation of a data share snapshot + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param shareSubscriptionSynchronization Share Subscription Synchronization payload. + * @param [options] The optional parameters + * @returns Promise + */ + beginCancelSynchronization(resourceGroupName: string, accountName: string, shareSubscriptionName: string, shareSubscriptionSynchronization: Models.ShareSubscriptionSynchronization, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + shareSubscriptionSynchronization, + options + }, + beginCancelSynchronizationOperationSpec, + options); + } + + /** + * Initiate a copy + * @summary Initiate an asynchronous data share job + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of share subscription + * @param synchronize Synchronize payload + * @param [options] The optional parameters + * @returns Promise + */ + beginSynchronizeMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, synchronize: Models.Synchronize, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + synchronize, + options + }, + beginSynchronizeMethodOperationSpec, + options); + } + + /** + * Delete a shareSubscription in an account + * @summary Delete shareSubscription in an account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Get synchronization settings set on a share + * @summary Get source share synchronization settings for a shareSubscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSourceShareSynchronizationSettingsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSourceShareSynchronizationSettingsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSourceShareSynchronizationSettingsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSourceShareSynchronizationSettingsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSourceShareSynchronizationSettingsNextOperationSpec, + callback) as Promise; + } + + /** + * List synchronization details + * @summary List data set level details for a share subscription synchronization + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizationDetailsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSynchronizationDetailsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizationDetailsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSynchronizationDetailsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSynchronizationDetailsNextOperationSpec, + callback) as Promise; + } + + /** + * List synchronizations of a share subscription + * @summary List Synchronizations in a share subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSynchronizationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSynchronizationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSynchronizationsNextOperationSpec, + callback) as Promise; + } + + /** + * List share subscriptions in an account + * @summary List of available share subscriptions under an account. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listSourceShareSynchronizationSettingsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceShareSynchronizationSettingList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationDetailsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "shareSubscriptionSynchronization", + mapper: { + ...Mappers.ShareSubscriptionSynchronization, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SynchronizationDetailsList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSubscriptionSynchronizationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSubscription + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "shareSubscription", + mapper: { + ...Mappers.ShareSubscription, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ShareSubscription + }, + 201: { + bodyMapper: Mappers.ShareSubscription + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSubscriptionList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginCancelSynchronizationOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "shareSubscriptionSynchronization", + mapper: { + ...Mappers.ShareSubscriptionSynchronization, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ShareSubscriptionSynchronization + }, + 202: { + bodyMapper: Mappers.ShareSubscriptionSynchronization + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginSynchronizeMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "synchronize", + mapper: { + ...Mappers.Synchronize, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ShareSubscriptionSynchronization + }, + 202: { + bodyMapper: Mappers.ShareSubscriptionSynchronization + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationResponse + }, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSourceShareSynchronizationSettingsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SourceShareSynchronizationSettingList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationDetailsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SynchronizationDetailsList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSubscriptionSynchronizationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSubscriptionList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/shares.ts b/sdk/datashare/arm-datashare/src/operations/shares.ts new file mode 100644 index 000000000000..cbb919714593 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/shares.ts @@ -0,0 +1,588 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/sharesMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a Shares. */ +export class Shares { + private readonly client: DataShareManagementClientContext; + + /** + * Create a Shares. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * List synchronization details + * @summary List data set level details for a share synchronization + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param shareSynchronization Share Synchronization payload. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareName: string, shareSynchronization: Models.ShareSynchronization, options?: Models.SharesListSynchronizationDetailsOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param shareSynchronization Share Synchronization payload. + * @param callback The callback + */ + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareName: string, shareSynchronization: Models.ShareSynchronization, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param shareSynchronization Share Synchronization payload. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareName: string, shareSynchronization: Models.ShareSynchronization, options: Models.SharesListSynchronizationDetailsOptionalParams, callback: msRest.ServiceCallback): void; + listSynchronizationDetails(resourceGroupName: string, accountName: string, shareName: string, shareSynchronization: Models.ShareSynchronization, options?: Models.SharesListSynchronizationDetailsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + shareSynchronization, + options + }, + listSynchronizationDetailsOperationSpec, + callback) as Promise; + } + + /** + * List synchronizations of a share + * @summary List Synchronizations in a share + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizations(resourceGroupName: string, accountName: string, shareName: string, options?: Models.SharesListSynchronizationsOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param callback The callback + */ + listSynchronizations(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizations(resourceGroupName: string, accountName: string, shareName: string, options: Models.SharesListSynchronizationsOptionalParams, callback: msRest.ServiceCallback): void; + listSynchronizations(resourceGroupName: string, accountName: string, shareName: string, options?: Models.SharesListSynchronizationsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + listSynchronizationsOperationSpec, + callback) as Promise; + } + + /** + * Get a share + * @summary Get a specified share + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to retrieve. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to retrieve. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a share + * @summary Create a share in the given account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param share The share payload + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareName: string, share: Models.Share, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param share The share payload + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, share: Models.Share, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param share The share payload + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, share: Models.Share, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, shareName: string, share: Models.Share, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + share, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a share + * @summary Deletes a share + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,shareName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List shares in an account + * @summary List of available shares under an account. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccount(resourceGroupName: string, accountName: string, options?: Models.SharesListByAccountOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param options The optional parameters + * @param callback The callback + */ + listByAccount(resourceGroupName: string, accountName: string, options: Models.SharesListByAccountOptionalParams, callback: msRest.ServiceCallback): void; + listByAccount(resourceGroupName: string, accountName: string, options?: Models.SharesListByAccountOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listByAccountOperationSpec, + callback) as Promise; + } + + /** + * Delete a share + * @summary Deletes a share + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, shareName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List synchronization details + * @summary List data set level details for a share synchronization + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizationDetailsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSynchronizationDetailsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizationDetailsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSynchronizationDetailsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSynchronizationDetailsNextOperationSpec, + callback) as Promise; + } + + /** + * List synchronizations of a share + * @summary List Synchronizations in a share + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listSynchronizationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listSynchronizationsNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listSynchronizationsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSynchronizationsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listSynchronizationsNextOperationSpec, + callback) as Promise; + } + + /** + * List shares in an account + * @summary List of available shares under an account. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByAccountNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByAccountNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listSynchronizationDetailsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizationDetails", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "shareSynchronization", + mapper: { + ...Mappers.ShareSynchronization, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SynchronizationDetailsList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSynchronizationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Share + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "share", + mapper: { + ...Mappers.Share, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Share + }, + 201: { + bodyMapper: Mappers.Share + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByAccountOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken, + Parameters.filter, + Parameters.orderby + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationResponse + }, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationDetailsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SynchronizationDetailsList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listSynchronizationsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareSynchronizationList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByAccountNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ShareList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/synchronizationSettings.ts b/sdk/datashare/arm-datashare/src/operations/synchronizationSettings.ts new file mode 100644 index 000000000000..ede8149fb029 --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/synchronizationSettings.ts @@ -0,0 +1,362 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/synchronizationSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a SynchronizationSettings. */ +export class SynchronizationSettings { + private readonly client: DataShareManagementClientContext; + + /** + * Create a SynchronizationSettings. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Get a synchronizationSetting in a share + * @summary Get synchronizationSetting in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param synchronizationSettingName The name of the synchronizationSetting. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param synchronizationSettingName The name of the synchronizationSetting. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param synchronizationSettingName The name of the synchronizationSetting. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + synchronizationSettingName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create or update a synchronizationSetting + * @summary Adds a new synchronization setting to an existing share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to add the synchronization setting to. + * @param synchronizationSettingName The name of the synchronizationSetting. + * @param synchronizationSetting The new synchronization setting information. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, synchronizationSetting: Models.SynchronizationSettingUnion, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to add the synchronization setting to. + * @param synchronizationSettingName The name of the synchronizationSetting. + * @param synchronizationSetting The new synchronization setting information. + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, synchronizationSetting: Models.SynchronizationSettingUnion, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share to add the synchronization setting to. + * @param synchronizationSettingName The name of the synchronizationSetting. + * @param synchronizationSetting The new synchronization setting information. + * @param options The optional parameters + * @param callback The callback + */ + create(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, synchronizationSetting: Models.SynchronizationSettingUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, synchronizationSetting: Models.SynchronizationSettingUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + synchronizationSettingName, + synchronizationSetting, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Delete a synchronizationSetting in a share + * @summary Delete synchronizationSetting in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param synchronizationSettingName The name of the synchronizationSetting . + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,shareName,synchronizationSettingName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List synchronizationSettings in a share + * @summary List synchronizationSettings in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param [options] The optional parameters + * @returns Promise + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.SynchronizationSettingsListByShareOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param options The optional parameters + * @param callback The callback + */ + listByShare(resourceGroupName: string, accountName: string, shareName: string, options: Models.SynchronizationSettingsListByShareOptionalParams, callback: msRest.ServiceCallback): void; + listByShare(resourceGroupName: string, accountName: string, shareName: string, options?: Models.SynchronizationSettingsListByShareOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareName, + options + }, + listByShareOperationSpec, + callback) as Promise; + } + + /** + * Delete a synchronizationSetting in a share + * @summary Delete synchronizationSetting in a share. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareName The name of the share. + * @param synchronizationSettingName The name of the synchronizationSetting . + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, shareName: string, synchronizationSettingName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareName, + synchronizationSettingName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List synchronizationSettings in a share + * @summary List synchronizationSettings in a share. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.synchronizationSettingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SynchronizationSetting + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.synchronizationSettingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "synchronizationSetting", + mapper: { + ...Mappers.SynchronizationSetting, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SynchronizationSetting + }, + 201: { + bodyMapper: Mappers.SynchronizationSetting + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SynchronizationSettingList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareName, + Parameters.synchronizationSettingName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationResponse + }, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SynchronizationSettingList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/src/operations/triggers.ts b/sdk/datashare/arm-datashare/src/operations/triggers.ts new file mode 100644 index 000000000000..1eb0f56968df --- /dev/null +++ b/sdk/datashare/arm-datashare/src/operations/triggers.ts @@ -0,0 +1,360 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/triggersMappers"; +import * as Parameters from "../models/parameters"; +import { DataShareManagementClientContext } from "../dataShareManagementClientContext"; + +/** Class representing a Triggers. */ +export class Triggers { + private readonly client: DataShareManagementClientContext; + + /** + * Create a Triggers. + * @param {DataShareManagementClientContext} client Reference to the service client. + */ + constructor(client: DataShareManagementClientContext) { + this.client = client; + } + + /** + * Get a Trigger in a shareSubscription + * @summary Get Trigger in a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param triggerName The name of the trigger. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param triggerName The name of the trigger. + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param triggerName The name of the trigger. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + triggerName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create a Trigger + * @summary This method creates a trigger for a share subscription + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription which will hold the data set + * sink. + * @param triggerName The name of the trigger. + * @param trigger Trigger details. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, trigger: Models.TriggerUnion, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,accountName,shareSubscriptionName,triggerName,trigger,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a Trigger in a shareSubscription + * @summary Delete Trigger in a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param triggerName The name of the trigger. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,accountName,shareSubscriptionName,triggerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List Triggers in a share subscription + * @summary List Triggers in a share subscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.TriggersListByShareSubscriptionOptionalParams): Promise; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param callback The callback + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options: Models.TriggersListByShareSubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listByShareSubscription(resourceGroupName: string, accountName: string, shareSubscriptionName: string, options?: Models.TriggersListByShareSubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + options + }, + listByShareSubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Create a Trigger + * @summary This method creates a trigger for a share subscription + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the share subscription which will hold the data set + * sink. + * @param triggerName The name of the trigger. + * @param trigger Trigger details. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, trigger: Models.TriggerUnion, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + triggerName, + trigger, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Delete a Trigger in a shareSubscription + * @summary Delete Trigger in a shareSubscription. + * @param resourceGroupName The resource group name. + * @param accountName The name of the share account. + * @param shareSubscriptionName The name of the shareSubscription. + * @param triggerName The name of the trigger. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, accountName: string, shareSubscriptionName: string, triggerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + shareSubscriptionName, + triggerName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List Triggers in a share subscription + * @summary List Triggers in a share subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByShareSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByShareSubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByShareSubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByShareSubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByShareSubscriptionNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName, + Parameters.triggerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.Trigger + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareSubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggerList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName, + Parameters.triggerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "trigger", + mapper: { + ...Mappers.Trigger, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Trigger + }, + 201: { + bodyMapper: Mappers.Trigger + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.shareSubscriptionName, + Parameters.triggerName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationResponse + }, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; + +const listByShareSubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TriggerList + }, + default: { + bodyMapper: Mappers.DataShareError + } + }, + serializer +}; diff --git a/sdk/datashare/arm-datashare/tsconfig.json b/sdk/datashare/arm-datashare/tsconfig.json new file mode 100644 index 000000000000..422b584abd5e --- /dev/null +++ b/sdk/datashare/arm-datashare/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "es6", + "moduleResolution": "node", + "strict": true, + "target": "es5", + "sourceMap": true, + "declarationMap": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es6", "dom"], + "declaration": true, + "outDir": "./esm", + "importHelpers": true + }, + "include": ["./src/**/*.ts"], + "exclude": ["node_modules"] +}