diff --git a/packages/@azure/arm-hybriddatamanager/LICENSE.txt b/packages/@azure/arm-hybriddatamanager/LICENSE.txt
new file mode 100644
index 000000000000..8f3d856145c5
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2019 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/packages/@azure/arm-hybriddatamanager/README.md b/packages/@azure/arm-hybriddatamanager/README.md
new file mode 100644
index 000000000000..ceeb53e12937
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/README.md
@@ -0,0 +1,96 @@
+## Azure HybridDataManagementClient SDK for JavaScript
+
+This package contains an isomorphic SDK for HybridDataManagementClient.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
+
+```bash
+npm install @azure/arm-hybriddatamanager
+```
+
+### How to use
+
+#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+```bash
+npm install @azure/ms-rest-nodeauth
+```
+
+##### 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 { HybridDataManagementClient, HybridDataManagementModels, HybridDataManagementMappers } from "@azure/arm-hybriddatamanager";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new HybridDataManagementClient(creds, subscriptionId);
+ client.operations.list().then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+#### browser - Authentication, client creation and list operations 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-hybriddatamanager sample
+
+
+
+
+
+
+
+
+```
+
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-hybriddatamanager/lib/hybridDataManagementClient.ts b/packages/@azure/arm-hybriddatamanager/lib/hybridDataManagementClient.ts
new file mode 100644
index 000000000000..87036da976a0
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/hybridDataManagementClient.ts
@@ -0,0 +1,56 @@
+/*
+ * 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 { HybridDataManagementClientContext } from "./hybridDataManagementClientContext";
+
+
+class HybridDataManagementClient extends HybridDataManagementClientContext {
+ // Operation groups
+ operations: operations.Operations;
+ dataManagers: operations.DataManagers;
+ dataServices: operations.DataServices;
+ jobDefinitions: operations.JobDefinitions;
+ jobs: operations.Jobs;
+ dataStores: operations.DataStores;
+ dataStoreTypes: operations.DataStoreTypes;
+ publicKeys: operations.PublicKeys;
+
+ /**
+ * Initializes a new instance of the HybridDataManagementClient class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId The Subscription Id
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.HybridDataManagementClientOptions) {
+ super(credentials, subscriptionId, options);
+ this.operations = new operations.Operations(this);
+ this.dataManagers = new operations.DataManagers(this);
+ this.dataServices = new operations.DataServices(this);
+ this.jobDefinitions = new operations.JobDefinitions(this);
+ this.jobs = new operations.Jobs(this);
+ this.dataStores = new operations.DataStores(this);
+ this.dataStoreTypes = new operations.DataStoreTypes(this);
+ this.publicKeys = new operations.PublicKeys(this);
+ }
+}
+
+// Operation Specifications
+
+export {
+ HybridDataManagementClient,
+ HybridDataManagementClientContext,
+ Models as HybridDataManagementModels,
+ Mappers as HybridDataManagementMappers
+};
+export * from "./operations";
diff --git a/packages/@azure/arm-hybriddatamanager/lib/hybridDataManagementClientContext.ts b/packages/@azure/arm-hybriddatamanager/lib/hybridDataManagementClientContext.ts
new file mode 100644
index 000000000000..7600d7e5fe57
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/hybridDataManagementClientContext.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-hybriddatamanager";
+const packageVersion = "1.0.0";
+
+export class HybridDataManagementClientContext extends msRestAzure.AzureServiceClient {
+ credentials: msRest.ServiceClientCredentials;
+ apiVersion?: string;
+ subscriptionId: string;
+
+ /**
+ * Initializes a new instance of the HybridDataManagementClient class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId The Subscription Id
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.HybridDataManagementClientOptions) {
+ 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 = '2016-06-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/packages/@azure/arm-hybriddatamanager/lib/models/dataManagersMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/dataManagersMappers.ts
new file mode 100644
index 000000000000..eeaaa0ecc918
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/dataManagersMappers.ts
@@ -0,0 +1,19 @@
+/*
+ * 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 {
+ DataManagerList,
+ DataManager,
+ Resource,
+ BaseResource,
+ Sku,
+ CloudError
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/dataServicesMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/dataServicesMappers.ts
new file mode 100644
index 000000000000..db6afe65ec60
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/dataServicesMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * 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 {
+ DataServiceList,
+ DataService,
+ DmsBaseObject,
+ CloudError,
+ DataStore,
+ CustomerSecret,
+ DataStoreType,
+ JobDefinition,
+ Schedule,
+ Job,
+ JobDetails,
+ JobStages,
+ ErrorDetails,
+ ErrorModel,
+ PublicKey,
+ Key
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/dataStoreTypesMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/dataStoreTypesMappers.ts
new file mode 100644
index 000000000000..a6b48ca0423f
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/dataStoreTypesMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * 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 {
+ DataStoreTypeList,
+ DataStoreType,
+ DmsBaseObject,
+ CloudError,
+ DataService,
+ DataStore,
+ CustomerSecret,
+ JobDefinition,
+ Schedule,
+ Job,
+ JobDetails,
+ JobStages,
+ ErrorDetails,
+ ErrorModel,
+ PublicKey,
+ Key
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/dataStoresMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/dataStoresMappers.ts
new file mode 100644
index 000000000000..f9d08a9012f1
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/dataStoresMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * 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 {
+ DataStoreList,
+ DataStore,
+ DmsBaseObject,
+ CustomerSecret,
+ CloudError,
+ DataService,
+ DataStoreType,
+ JobDefinition,
+ Schedule,
+ Job,
+ JobDetails,
+ JobStages,
+ ErrorDetails,
+ ErrorModel,
+ PublicKey,
+ Key
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/index.ts b/packages/@azure/arm-hybriddatamanager/lib/models/index.ts
new file mode 100644
index 000000000000..ea21847a14d7
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/index.ts
@@ -0,0 +1,1637 @@
+/*
+ * 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 };
+
+
+/**
+ * @interface
+ * An interface representing AvailableProviderOperationDisplay.
+ * Contains the localized display information for this particular operation /
+ * action.
+ * These value will be used by several clients for
+ * (1) custom role definitions for RBAC;
+ * (2) complex query filters for the event service; and (3) audit history /
+ * records for management operations.
+ *
+ */
+export interface AvailableProviderOperationDisplay {
+ /**
+ * @member {string} [provider] Gets or sets Provider
+ * The localized friendly form of the resource provider name – it is expected
+ * to also include the publisher/company responsible.
+ * It should use Title Casing and begin with “Microsoft” for 1st party
+ * services.
+ */
+ provider?: string;
+ /**
+ * @member {string} [resource] Gets or sets Resource
+ * The localized friendly form of the resource type related to this
+ * action/operation – it should match the public documentation for the
+ * resource provider.
+ * It should use Title Casing – for examples, please refer to the “name”
+ * section.
+ */
+ resource?: string;
+ /**
+ * @member {string} [operation] Gets or sets Operation
+ * The localized friendly name for the operation, as it should be shown to
+ * the user.
+ * It should be concise (to fit in drop downs) but clear (i.e.
+ * self-documenting). It should use Title Casing and include the
+ * entity/resource to which it applies.
+ */
+ operation?: string;
+ /**
+ * @member {string} [description] Gets or sets Description
+ * The localized friendly description for the operation, as it should be
+ * shown to the user.
+ * It should be thorough, yet concise – it will be used in tool tips and
+ * detailed views.
+ */
+ description?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AvailableProviderOperation.
+ * Class represents provider operation
+ *
+ */
+export interface AvailableProviderOperation {
+ /**
+ * @member {string} name Gets or Sets Name of the operations
+ */
+ name: string;
+ /**
+ * @member {AvailableProviderOperationDisplay} [display] Gets or sets Display
+ * information
+ * Contains the localized display information for this particular
+ * operation/action
+ */
+ display?: AvailableProviderOperationDisplay;
+ /**
+ * @member {string} [origin] Gets or sets Origin
+ * The intended executor of the operation; governs the display of the
+ * operation in the RBAC UX and the audit logs UX.
+ * Default value is “user,system”
+ */
+ origin?: string;
+ /**
+ * @member {any} [properties] Gets or sets Properties
+ * Reserved for future use
+ */
+ properties?: any;
+}
+
+/**
+ * @interface
+ * An interface representing CustomerSecret.
+ * The pair of customer secret.
+ *
+ */
+export interface CustomerSecret {
+ /**
+ * @member {string} keyIdentifier The identifier to the data service input
+ * object which this secret corresponds to.
+ */
+ keyIdentifier: string;
+ /**
+ * @member {string} keyValue It contains the encrypted customer secret.
+ */
+ keyValue: string;
+ /**
+ * @member {SupportedAlgorithm} algorithm The encryption algorithm used to
+ * encrypt data. Possible values include: 'None', 'RSA1_5', 'RSA_OAEP',
+ * 'PlainText'
+ */
+ algorithm: SupportedAlgorithm;
+}
+
+/**
+ * @interface
+ * An interface representing Resource.
+ * Model of the Resource.
+ *
+ * @extends BaseResource
+ */
+export interface Resource extends BaseResource {
+ /**
+ * @member {string} [id] The Resource Id.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly id?: string;
+ /**
+ * @member {string} [name] The Resource Name.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {string} [type] The Resource type.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly type?: string;
+ /**
+ * @member {string} location The location of the resource. This will be one
+ * of the supported and registered Azure Geo Regions (e.g. West US, East
+ * US, Southeast Asia, etc.). The geo region of a resource cannot be changed
+ * once it is created, but if an identical geo
+ * region is specified on update the request will succeed.
+ */
+ location: string;
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The list of key value
+ * pairs that describe the resource. These tags can be used in viewing and
+ * grouping this resource
+ * (across resource groups).
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * @member {Sku} [sku] The sku type.
+ */
+ sku?: Sku;
+}
+
+/**
+ * @interface
+ * An interface representing DataManager.
+ * The DataManager resource.
+ *
+ * @extends Resource
+ */
+export interface DataManager extends Resource {
+ /**
+ * @member {string} [etag] Etag of the Resource.
+ */
+ etag?: string;
+}
+
+/**
+ * @interface
+ * An interface representing DmsBaseObject.
+ * Base class for all objects under DataManager.
+ *
+ */
+export interface DmsBaseObject {
+ /**
+ * @member {string} [name] Name of the object.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {string} [id] Id of the object.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly id?: string;
+ /**
+ * @member {string} [type] Type of the object.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly type?: string;
+}
+
+/**
+ * @interface
+ * An interface representing DataService.
+ * Data Service.
+ *
+ * @extends DmsBaseObject
+ */
+export interface DataService extends DmsBaseObject {
+ /**
+ * @member {State} state State of the data service. Possible values include:
+ * 'Disabled', 'Enabled', 'Supported'
+ */
+ state: State;
+ /**
+ * @member {string[]} [supportedDataSinkTypes] Supported data store types
+ * which can be used as a sink.
+ */
+ supportedDataSinkTypes?: string[];
+ /**
+ * @member {string[]} [supportedDataSourceTypes] Supported data store types
+ * which can be used as a source.
+ */
+ supportedDataSourceTypes?: string[];
+}
+
+/**
+ * @interface
+ * An interface representing DataStore.
+ * Data store.
+ *
+ * @extends DmsBaseObject
+ */
+export interface DataStore extends DmsBaseObject {
+ /**
+ * @member {string} [repositoryId] Arm Id for the manager resource to which
+ * the data source is associated. This is optional.
+ */
+ repositoryId?: string;
+ /**
+ * @member {State} state State of the data source. Possible values include:
+ * 'Disabled', 'Enabled', 'Supported'
+ */
+ state: State;
+ /**
+ * @member {any} [extendedProperties] A generic json used differently by each
+ * data source type.
+ */
+ extendedProperties?: any;
+ /**
+ * @member {string} dataStoreTypeId The arm id of the data store type.
+ */
+ dataStoreTypeId: string;
+ /**
+ * @member {CustomerSecret[]} [customerSecrets] List of customer secrets
+ * containing a key identifier and key value. The key identifier is a way for
+ * the specific data source to understand the key. Value contains customer
+ * secret encrypted by the encryptionKeys.
+ */
+ customerSecrets?: CustomerSecret[];
+}
+
+/**
+ * @interface
+ * An interface representing DataStoreFilter.
+ * Contains the information about the filters for the DataStore.
+ *
+ */
+export interface DataStoreFilter {
+ /**
+ * @member {string} [dataStoreTypeId] The data store type id.
+ */
+ dataStoreTypeId?: string;
+}
+
+/**
+ * @interface
+ * An interface representing DataStoreType.
+ * Data Store Type.
+ *
+ * @extends DmsBaseObject
+ */
+export interface DataStoreType extends DmsBaseObject {
+ /**
+ * @member {string} [repositoryType] Arm type for the manager resource to
+ * which the data source type is associated. This is optional.
+ */
+ repositoryType?: string;
+ /**
+ * @member {State} state State of the data store type. Possible values
+ * include: 'Disabled', 'Enabled', 'Supported'
+ */
+ state: State;
+ /**
+ * @member {string[]} [supportedDataServicesAsSink] Supported data services
+ * where it can be used as a sink.
+ */
+ supportedDataServicesAsSink?: string[];
+ /**
+ * @member {string[]} [supportedDataServicesAsSource] Supported data services
+ * where it can be used as a source.
+ */
+ supportedDataServicesAsSource?: string[];
+}
+
+/**
+ * @interface
+ * An interface representing ErrorModel.
+ * Top level error for the job.
+ *
+ */
+export interface ErrorModel {
+ /**
+ * @member {string} code Error code that can be used to programmatically
+ * identify the error.
+ */
+ code: string;
+ /**
+ * @member {string} [message] Describes the error in detail and provides
+ * debugging information.
+ */
+ message?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ErrorDetails.
+ * Error Details
+ *
+ */
+export interface ErrorDetails {
+ /**
+ * @member {string} [errorMessage] Error message.
+ */
+ errorMessage?: string;
+ /**
+ * @member {number} [errorCode] Error code.
+ */
+ errorCode?: number;
+ /**
+ * @member {string} [recommendedAction] Recommended action for the error.
+ */
+ recommendedAction?: string;
+ /**
+ * @member {string} [exceptionMessage] Contains the non localized exception
+ * message
+ */
+ exceptionMessage?: string;
+}
+
+/**
+ * @interface
+ * An interface representing JobStages.
+ * Job stages.
+ *
+ */
+export interface JobStages {
+ /**
+ * @member {string} [stageName] Name of the job stage.
+ */
+ stageName?: string;
+ /**
+ * @member {JobStatus} stageStatus Status of the job stage. Possible values
+ * include: 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
+ * 'Cancelled', 'Cancelling'
+ */
+ stageStatus: JobStatus;
+ /**
+ * @member {any} [jobStageDetails] Job Stage Details
+ */
+ jobStageDetails?: any;
+ /**
+ * @member {ErrorDetails[]} [errorDetails] Error details for the stage. This
+ * is optional
+ */
+ errorDetails?: ErrorDetails[];
+}
+
+/**
+ * @interface
+ * An interface representing Schedule.
+ * Schedule for the job run.
+ *
+ */
+export interface Schedule {
+ /**
+ * @member {string} [name] Name of the schedule.
+ */
+ name?: string;
+ /**
+ * @member {string[]} [policyList] A list of repetition intervals in ISO 8601
+ * format.
+ */
+ policyList?: string[];
+}
+
+/**
+ * @interface
+ * An interface representing JobDefinition.
+ * Job Definition.
+ *
+ * @extends DmsBaseObject
+ */
+export interface JobDefinition extends DmsBaseObject {
+ /**
+ * @member {string} dataSourceId Data Source Id associated to the job
+ * definition.
+ */
+ dataSourceId: string;
+ /**
+ * @member {string} dataSinkId Data Sink Id associated to the job definition.
+ */
+ dataSinkId: string;
+ /**
+ * @member {Schedule[]} [schedules] Schedule for running the job definition
+ */
+ schedules?: Schedule[];
+ /**
+ * @member {State} state State of the job definition. Possible values
+ * include: 'Disabled', 'Enabled', 'Supported'
+ */
+ state: State;
+ /**
+ * @member {Date} [lastModifiedTime] Last modified time of the job
+ * definition.
+ */
+ lastModifiedTime?: Date;
+ /**
+ * @member {RunLocation} [runLocation] This is the preferred geo location for
+ * the job to run. Possible values include: 'none', 'australiaeast',
+ * 'australiasoutheast', 'brazilsouth', 'canadacentral', 'canadaeast',
+ * 'centralindia', 'centralus', 'eastasia', 'eastus', 'eastus2', 'japaneast',
+ * 'japanwest', 'koreacentral', 'koreasouth', 'southeastasia',
+ * 'southcentralus', 'southindia', 'northcentralus', 'northeurope',
+ * 'uksouth', 'ukwest', 'westcentralus', 'westeurope', 'westindia', 'westus',
+ * 'westus2'
+ */
+ runLocation?: RunLocation;
+ /**
+ * @member {UserConfirmation} [userConfirmation] Enum to detect if user
+ * confirmation is required. If not passed will default to NotRequired.
+ * Possible values include: 'NotRequired', 'Required'. Default value:
+ * 'NotRequired' .
+ */
+ userConfirmation?: UserConfirmation;
+ /**
+ * @member {any} [dataServiceInput] A generic json used differently by each
+ * data service type.
+ */
+ dataServiceInput?: any;
+ /**
+ * @member {CustomerSecret[]} [customerSecrets] List of customer secrets
+ * containing a key identifier and key value. The key identifier is a way for
+ * the specific data source to understand the key. Value contains customer
+ * secret encrypted by the encryptionKeys.
+ */
+ customerSecrets?: CustomerSecret[];
+}
+
+/**
+ * @interface
+ * An interface representing JobDetails.
+ * Job details.
+ *
+ */
+export interface JobDetails {
+ /**
+ * @member {JobStages[]} [jobStages] List of stages that ran in the job
+ */
+ jobStages?: JobStages[];
+ /**
+ * @member {JobDefinition} [jobDefinition] JobDefinition at the time of the
+ * run
+ */
+ jobDefinition?: JobDefinition;
+ /**
+ * @member {ErrorDetails[]} [errorDetails] Error details for failure. This is
+ * optional.
+ */
+ errorDetails?: ErrorDetails[];
+ /**
+ * @member {string} [itemDetailsLink] Item Details Link to download files or
+ * see details
+ */
+ itemDetailsLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Job.
+ * Data service job.
+ *
+ * @extends DmsBaseObject
+ */
+export interface Job extends DmsBaseObject {
+ /**
+ * @member {JobStatus} status Status of the job. Possible values include:
+ * 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
+ * 'Cancelled', 'Cancelling'
+ */
+ status: JobStatus;
+ /**
+ * @member {Date} startTime Time at which the job was started in UTC ISO 8601
+ * format.
+ */
+ startTime: Date;
+ /**
+ * @member {Date} [endTime] Time at which the job ended in UTC ISO 8601
+ * format.
+ */
+ endTime?: Date;
+ /**
+ * @member {IsJobCancellable} isCancellable Describes whether the job is
+ * cancellable. Possible values include: 'NotCancellable', 'Cancellable'
+ */
+ isCancellable: IsJobCancellable;
+ /**
+ * @member {number} [bytesProcessed] Number of bytes processed by the job as
+ * of now.
+ */
+ bytesProcessed?: number;
+ /**
+ * @member {number} [itemsProcessed] Number of items processed by the job as
+ * of now
+ */
+ itemsProcessed?: number;
+ /**
+ * @member {number} [totalBytesToProcess] Number of bytes to be processed by
+ * the job in total.
+ */
+ totalBytesToProcess?: number;
+ /**
+ * @member {number} [totalItemsToProcess] Number of items to be processed by
+ * the job in total
+ */
+ totalItemsToProcess?: number;
+ /**
+ * @member {JobDetails} [details] Details of a job run. This field will only
+ * be sent for expand details filter.
+ */
+ details?: JobDetails;
+ /**
+ * @member {string} [dataSourceName] Name of the data source on which the job
+ * was triggered.
+ */
+ dataSourceName?: string;
+ /**
+ * @member {string} [dataSinkName] Name of the data sink on which the job was
+ * triggered.
+ */
+ dataSinkName?: string;
+ /**
+ * @member {ErrorModel} [error] Top level error for the job.
+ */
+ error?: ErrorModel;
+}
+
+/**
+ * @interface
+ * An interface representing JobDefinitionFilter.
+ * Contains the supported job definition filters.
+ *
+ */
+export interface JobDefinitionFilter {
+ /**
+ * @member {State} state The state of the job definition. Possible values
+ * include: 'Disabled', 'Enabled', 'Supported'
+ */
+ state: State;
+ /**
+ * @member {string} [dataSource] The data source associated with the job
+ * definition
+ */
+ dataSource?: string;
+ /**
+ * @member {Date} [lastModified] The last modified date time of the data
+ * source.
+ */
+ lastModified?: Date;
+}
+
+/**
+ * @interface
+ * An interface representing JobFilter.
+ * Contains the information about the filters for the job.
+ *
+ */
+export interface JobFilter {
+ /**
+ * @member {JobStatus} status The status of the job. Possible values include:
+ * 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
+ * 'Cancelled', 'Cancelling'
+ */
+ status: JobStatus;
+ /**
+ * @member {Date} [startTime] The start time of the job.
+ */
+ startTime?: Date;
+}
+
+/**
+ * @interface
+ * An interface representing Key.
+ * Encryption Key.
+ *
+ */
+export interface Key {
+ /**
+ * @member {string} keyModulus Modulus of the encryption key.
+ */
+ keyModulus: string;
+ /**
+ * @member {string} keyExponent Exponent of the encryption key.
+ */
+ keyExponent: string;
+ /**
+ * @member {number} encryptionChunkSizeInBytes The maximum byte size that can
+ * be encrypted by the key. For a key size larger than the size, break into
+ * chunks and encrypt each chunk, append each encrypted chunk with : to mark
+ * the end of the chunk.
+ */
+ encryptionChunkSizeInBytes: number;
+}
+
+/**
+ * @interface
+ * An interface representing PublicKey.
+ * Public key
+ *
+ * @extends DmsBaseObject
+ */
+export interface PublicKey extends DmsBaseObject {
+ /**
+ * @member {Key} dataServiceLevel1Key Level one public key for encryption
+ */
+ dataServiceLevel1Key: Key;
+ /**
+ * @member {Key} dataServiceLevel2Key Level two public key for encryption
+ */
+ dataServiceLevel2Key: Key;
+}
+
+/**
+ * @interface
+ * An interface representing Sku.
+ * The sku type.
+ *
+ */
+export interface Sku {
+ /**
+ * @member {string} [name] The sku name. Required for data manager creation,
+ * optional for update.
+ */
+ name?: string;
+ /**
+ * @member {string} [tier] The sku tier. This is based on the SKU name.
+ */
+ tier?: string;
+}
+
+/**
+ * @interface
+ * An interface representing RunParameters.
+ * Run parameters for a job.
+ *
+ */
+export interface RunParameters {
+ /**
+ * @member {UserConfirmation} [userConfirmation] Enum to detect if user
+ * confirmation is required. If not passed will default to NotRequired.
+ * Possible values include: 'NotRequired', 'Required'. Default value:
+ * 'NotRequired' .
+ */
+ userConfirmation?: UserConfirmation;
+ /**
+ * @member {any} [dataServiceInput] A generic json used differently by each
+ * data service type.
+ */
+ dataServiceInput?: any;
+ /**
+ * @member {CustomerSecret[]} [customerSecrets] List of customer secrets
+ * containing a key identifier and key value. The key identifier is a way for
+ * the specific data source to understand the key. Value contains customer
+ * secret encrypted by the encryptionKeys.
+ */
+ customerSecrets?: CustomerSecret[];
+}
+
+/**
+ * @interface
+ * An interface representing JobDefinitionsListByDataServiceOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface JobDefinitionsListByDataServiceOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] OData Filter options
+ */
+ filter?: string;
+}
+
+/**
+ * @interface
+ * An interface representing JobDefinitionsListByDataManagerOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface JobDefinitionsListByDataManagerOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] OData Filter options
+ */
+ filter?: string;
+}
+
+/**
+ * @interface
+ * An interface representing JobsListByJobDefinitionOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface JobsListByJobDefinitionOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] OData Filter options
+ */
+ filter?: string;
+}
+
+/**
+ * @interface
+ * An interface representing JobsGetOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface JobsGetOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [expand] $expand is supported on details parameter for
+ * job, which provides details on the job stages.
+ */
+ expand?: string;
+}
+
+/**
+ * @interface
+ * An interface representing JobsListByDataServiceOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface JobsListByDataServiceOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] OData Filter options
+ */
+ filter?: string;
+}
+
+/**
+ * @interface
+ * An interface representing JobsListByDataManagerOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface JobsListByDataManagerOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] OData Filter options
+ */
+ filter?: string;
+}
+
+/**
+ * @interface
+ * An interface representing DataStoresListByDataManagerOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface DataStoresListByDataManagerOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] OData Filter options
+ */
+ filter?: string;
+}
+
+/**
+ * @interface
+ * An interface representing HybridDataManagementClientOptions.
+ * @extends AzureServiceClientOptions
+ */
+export interface HybridDataManagementClientOptions extends AzureServiceClientOptions {
+ /**
+ * @member {string} [baseUri]
+ */
+ baseUri?: string;
+}
+
+
+/**
+ * @interface
+ * An interface representing the AvailableProviderOperations.
+ * Class for set of operations used for discovery of available provider
+ * operations.
+ *
+ * @extends Array
+ */
+export interface AvailableProviderOperations extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of operations.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the DataManagerList.
+ * DataManager resources Collection.
+ *
+ * @extends Array
+ */
+export interface DataManagerList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of data stores.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the DataServiceList.
+ * Data Service Collection.
+ *
+ * @extends Array
+ */
+export interface DataServiceList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of data services.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the JobDefinitionList.
+ * Job Definition Collection.
+ *
+ * @extends Array
+ */
+export interface JobDefinitionList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of job definitions.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the JobList.
+ * Job Collection.
+ *
+ * @extends Array
+ */
+export interface JobList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of jobs.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the DataStoreList.
+ * Data Store Collection.
+ *
+ * @extends Array
+ */
+export interface DataStoreList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of data stores.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the DataStoreTypeList.
+ * Data Store Type Collection.
+ *
+ * @extends Array
+ */
+export interface DataStoreTypeList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of data store types.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the PublicKeyList.
+ * PublicKey Collection
+ *
+ * @extends Array
+ */
+export interface PublicKeyList extends Array {
+ /**
+ * @member {string} [nextLink] Link for the next set of public keys.
+ */
+ nextLink?: string;
+}
+
+/**
+ * Defines values for SupportedAlgorithm.
+ * Possible values include: 'None', 'RSA1_5', 'RSA_OAEP', 'PlainText'
+ * @readonly
+ * @enum {string}
+ */
+export type SupportedAlgorithm = 'None' | 'RSA1_5' | 'RSA_OAEP' | 'PlainText';
+
+/**
+ * Defines values for State.
+ * Possible values include: 'Disabled', 'Enabled', 'Supported'
+ * @readonly
+ * @enum {string}
+ */
+export type State = 'Disabled' | 'Enabled' | 'Supported';
+
+/**
+ * Defines values for JobStatus.
+ * Possible values include: 'None', 'InProgress', 'Succeeded', 'WaitingForAction', 'Failed',
+ * 'Cancelled', 'Cancelling'
+ * @readonly
+ * @enum {string}
+ */
+export type JobStatus = 'None' | 'InProgress' | 'Succeeded' | 'WaitingForAction' | 'Failed' | 'Cancelled' | 'Cancelling';
+
+/**
+ * Defines values for IsJobCancellable.
+ * Possible values include: 'NotCancellable', 'Cancellable'
+ * @readonly
+ * @enum {string}
+ */
+export type IsJobCancellable = 'NotCancellable' | 'Cancellable';
+
+/**
+ * Defines values for RunLocation.
+ * Possible values include: 'none', 'australiaeast', 'australiasoutheast', 'brazilsouth',
+ * 'canadacentral', 'canadaeast', 'centralindia', 'centralus', 'eastasia', 'eastus', 'eastus2',
+ * 'japaneast', 'japanwest', 'koreacentral', 'koreasouth', 'southeastasia', 'southcentralus',
+ * 'southindia', 'northcentralus', 'northeurope', 'uksouth', 'ukwest', 'westcentralus',
+ * 'westeurope', 'westindia', 'westus', 'westus2'
+ * @readonly
+ * @enum {string}
+ */
+export type RunLocation = 'none' | 'australiaeast' | 'australiasoutheast' | 'brazilsouth' | 'canadacentral' | 'canadaeast' | 'centralindia' | 'centralus' | 'eastasia' | 'eastus' | 'eastus2' | 'japaneast' | 'japanwest' | 'koreacentral' | 'koreasouth' | 'southeastasia' | 'southcentralus' | 'southindia' | 'northcentralus' | 'northeurope' | 'uksouth' | 'ukwest' | 'westcentralus' | 'westeurope' | 'westindia' | 'westus' | 'westus2';
+
+/**
+ * Defines values for UserConfirmation.
+ * Possible values include: 'NotRequired', 'Required'
+ * @readonly
+ * @enum {string}
+ */
+export type UserConfirmation = 'NotRequired' | 'Required';
+
+/**
+ * Contains response data for the list operation.
+ */
+export type OperationsListResponse = AvailableProviderOperations & {
+ /**
+ * 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: AvailableProviderOperations;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type OperationsListNextResponse = AvailableProviderOperations & {
+ /**
+ * 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: AvailableProviderOperations;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type DataManagersListResponse = DataManagerList & {
+ /**
+ * 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: DataManagerList;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroup operation.
+ */
+export type DataManagersListByResourceGroupResponse = DataManagerList & {
+ /**
+ * 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: DataManagerList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type DataManagersGetResponse = DataManager & {
+ /**
+ * 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: DataManager;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type DataManagersCreateResponse = DataManager & {
+ /**
+ * 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: DataManager;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type DataManagersBeginCreateResponse = DataManager & {
+ /**
+ * 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: DataManager;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManager operation.
+ */
+export type DataServicesListByDataManagerResponse = DataServiceList & {
+ /**
+ * 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: DataServiceList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type DataServicesGetResponse = DataService & {
+ /**
+ * 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: DataService;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManagerNext operation.
+ */
+export type DataServicesListByDataManagerNextResponse = DataServiceList & {
+ /**
+ * 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: DataServiceList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataService operation.
+ */
+export type JobDefinitionsListByDataServiceResponse = JobDefinitionList & {
+ /**
+ * 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: JobDefinitionList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type JobDefinitionsGetResponse = JobDefinition & {
+ /**
+ * 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: JobDefinition;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type JobDefinitionsCreateOrUpdateResponse = JobDefinition & {
+ /**
+ * 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: JobDefinition;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManager operation.
+ */
+export type JobDefinitionsListByDataManagerResponse = JobDefinitionList & {
+ /**
+ * 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: JobDefinitionList;
+ };
+};
+
+/**
+ * Contains response data for the beginCreateOrUpdate operation.
+ */
+export type JobDefinitionsBeginCreateOrUpdateResponse = JobDefinition & {
+ /**
+ * 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: JobDefinition;
+ };
+};
+
+/**
+ * Contains response data for the listByDataServiceNext operation.
+ */
+export type JobDefinitionsListByDataServiceNextResponse = JobDefinitionList & {
+ /**
+ * 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: JobDefinitionList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManagerNext operation.
+ */
+export type JobDefinitionsListByDataManagerNextResponse = JobDefinitionList & {
+ /**
+ * 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: JobDefinitionList;
+ };
+};
+
+/**
+ * Contains response data for the listByJobDefinition operation.
+ */
+export type JobsListByJobDefinitionResponse = JobList & {
+ /**
+ * 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: JobList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type JobsGetResponse = Job & {
+ /**
+ * 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: Job;
+ };
+};
+
+/**
+ * Contains response data for the listByDataService operation.
+ */
+export type JobsListByDataServiceResponse = JobList & {
+ /**
+ * 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: JobList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManager operation.
+ */
+export type JobsListByDataManagerResponse = JobList & {
+ /**
+ * 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: JobList;
+ };
+};
+
+/**
+ * Contains response data for the listByJobDefinitionNext operation.
+ */
+export type JobsListByJobDefinitionNextResponse = JobList & {
+ /**
+ * 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: JobList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataServiceNext operation.
+ */
+export type JobsListByDataServiceNextResponse = JobList & {
+ /**
+ * 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: JobList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManagerNext operation.
+ */
+export type JobsListByDataManagerNextResponse = JobList & {
+ /**
+ * 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: JobList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManager operation.
+ */
+export type DataStoresListByDataManagerResponse = DataStoreList & {
+ /**
+ * 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: DataStoreList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type DataStoresGetResponse = DataStore & {
+ /**
+ * 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: DataStore;
+ };
+};
+
+/**
+ * Contains response data for the createOrUpdate operation.
+ */
+export type DataStoresCreateOrUpdateResponse = DataStore & {
+ /**
+ * 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: DataStore;
+ };
+};
+
+/**
+ * Contains response data for the beginCreateOrUpdate operation.
+ */
+export type DataStoresBeginCreateOrUpdateResponse = DataStore & {
+ /**
+ * 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: DataStore;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManagerNext operation.
+ */
+export type DataStoresListByDataManagerNextResponse = DataStoreList & {
+ /**
+ * 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: DataStoreList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManager operation.
+ */
+export type DataStoreTypesListByDataManagerResponse = DataStoreTypeList & {
+ /**
+ * 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: DataStoreTypeList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type DataStoreTypesGetResponse = DataStoreType & {
+ /**
+ * 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: DataStoreType;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManagerNext operation.
+ */
+export type DataStoreTypesListByDataManagerNextResponse = DataStoreTypeList & {
+ /**
+ * 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: DataStoreTypeList;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManager operation.
+ */
+export type PublicKeysListByDataManagerResponse = PublicKeyList & {
+ /**
+ * 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: PublicKeyList;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type PublicKeysGetResponse = PublicKey & {
+ /**
+ * 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: PublicKey;
+ };
+};
+
+/**
+ * Contains response data for the listByDataManagerNext operation.
+ */
+export type PublicKeysListByDataManagerNextResponse = PublicKeyList & {
+ /**
+ * 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: PublicKeyList;
+ };
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/jobDefinitionsMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/jobDefinitionsMappers.ts
new file mode 100644
index 000000000000..f4c35ee9e629
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/jobDefinitionsMappers.ts
@@ -0,0 +1,30 @@
+/*
+ * 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 {
+ JobDefinitionList,
+ JobDefinition,
+ DmsBaseObject,
+ Schedule,
+ CustomerSecret,
+ CloudError,
+ RunParameters,
+ DataService,
+ DataStore,
+ DataStoreType,
+ Job,
+ JobDetails,
+ JobStages,
+ ErrorDetails,
+ ErrorModel,
+ PublicKey,
+ Key
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/jobsMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/jobsMappers.ts
new file mode 100644
index 000000000000..ca3b63308e65
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/jobsMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * 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 {
+ JobList,
+ Job,
+ DmsBaseObject,
+ JobDetails,
+ JobStages,
+ ErrorDetails,
+ JobDefinition,
+ Schedule,
+ CustomerSecret,
+ ErrorModel,
+ CloudError,
+ DataService,
+ DataStore,
+ DataStoreType,
+ PublicKey,
+ Key
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/mappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/mappers.ts
new file mode 100644
index 000000000000..a11ad1a6f5d0
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/mappers.ts
@@ -0,0 +1,1196 @@
+/*
+ * 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 AvailableProviderOperationDisplay: msRest.CompositeMapper = {
+ serializedName: "AvailableProviderOperationDisplay",
+ type: {
+ name: "Composite",
+ className: "AvailableProviderOperationDisplay",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AvailableProviderOperation: msRest.CompositeMapper = {
+ serializedName: "AvailableProviderOperation",
+ type: {
+ name: "Composite",
+ className: "AvailableProviderOperation",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "AvailableProviderOperationDisplay"
+ }
+ },
+ origin: {
+ serializedName: "origin",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Object"
+ }
+ }
+ }
+ }
+};
+
+export const CustomerSecret: msRest.CompositeMapper = {
+ serializedName: "CustomerSecret",
+ type: {
+ name: "Composite",
+ className: "CustomerSecret",
+ modelProperties: {
+ keyIdentifier: {
+ required: true,
+ serializedName: "keyIdentifier",
+ type: {
+ name: "String"
+ }
+ },
+ keyValue: {
+ required: true,
+ serializedName: "keyValue",
+ type: {
+ name: "String"
+ }
+ },
+ algorithm: {
+ required: true,
+ serializedName: "algorithm",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "None",
+ "RSA1_5",
+ "RSA_OAEP",
+ "PlainText"
+ ]
+ }
+ }
+ }
+ }
+};
+
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
+ type: {
+ name: "Composite",
+ className: "Resource",
+ 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"
+ }
+ },
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "Sku"
+ }
+ }
+ }
+ }
+};
+
+export const DataManager: msRest.CompositeMapper = {
+ serializedName: "DataManager",
+ type: {
+ name: "Composite",
+ className: "DataManager",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DmsBaseObject: msRest.CompositeMapper = {
+ serializedName: "DmsBaseObject",
+ type: {
+ name: "Composite",
+ className: "DmsBaseObject",
+ modelProperties: {
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DataService: msRest.CompositeMapper = {
+ serializedName: "DataService",
+ type: {
+ name: "Composite",
+ className: "DataService",
+ modelProperties: {
+ ...DmsBaseObject.type.modelProperties,
+ state: {
+ required: true,
+ serializedName: "properties.state",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Disabled",
+ "Enabled",
+ "Supported"
+ ]
+ }
+ },
+ supportedDataSinkTypes: {
+ serializedName: "properties.supportedDataSinkTypes",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ supportedDataSourceTypes: {
+ serializedName: "properties.supportedDataSourceTypes",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const DataStore: msRest.CompositeMapper = {
+ serializedName: "DataStore",
+ type: {
+ name: "Composite",
+ className: "DataStore",
+ modelProperties: {
+ ...DmsBaseObject.type.modelProperties,
+ repositoryId: {
+ serializedName: "properties.repositoryId",
+ type: {
+ name: "String"
+ }
+ },
+ state: {
+ required: true,
+ serializedName: "properties.state",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Disabled",
+ "Enabled",
+ "Supported"
+ ]
+ }
+ },
+ extendedProperties: {
+ serializedName: "properties.extendedProperties",
+ type: {
+ name: "Object"
+ }
+ },
+ dataStoreTypeId: {
+ required: true,
+ serializedName: "properties.dataStoreTypeId",
+ type: {
+ name: "String"
+ }
+ },
+ customerSecrets: {
+ serializedName: "properties.customerSecrets",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CustomerSecret"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const DataStoreFilter: msRest.CompositeMapper = {
+ serializedName: "DataStoreFilter",
+ type: {
+ name: "Composite",
+ className: "DataStoreFilter",
+ modelProperties: {
+ dataStoreTypeId: {
+ serializedName: "dataStoreTypeId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DataStoreType: msRest.CompositeMapper = {
+ serializedName: "DataStoreType",
+ type: {
+ name: "Composite",
+ className: "DataStoreType",
+ modelProperties: {
+ ...DmsBaseObject.type.modelProperties,
+ repositoryType: {
+ serializedName: "properties.repositoryType",
+ type: {
+ name: "String"
+ }
+ },
+ state: {
+ required: true,
+ serializedName: "properties.state",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Disabled",
+ "Enabled",
+ "Supported"
+ ]
+ }
+ },
+ supportedDataServicesAsSink: {
+ serializedName: "properties.supportedDataServicesAsSink",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ supportedDataServicesAsSource: {
+ serializedName: "properties.supportedDataServicesAsSource",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ErrorModel: msRest.CompositeMapper = {
+ serializedName: "Error",
+ type: {
+ name: "Composite",
+ className: "ErrorModel",
+ modelProperties: {
+ code: {
+ required: true,
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorDetails: msRest.CompositeMapper = {
+ serializedName: "ErrorDetails",
+ type: {
+ name: "Composite",
+ className: "ErrorDetails",
+ modelProperties: {
+ errorMessage: {
+ serializedName: "errorMessage",
+ type: {
+ name: "String"
+ }
+ },
+ errorCode: {
+ serializedName: "errorCode",
+ type: {
+ name: "Number"
+ }
+ },
+ recommendedAction: {
+ serializedName: "recommendedAction",
+ type: {
+ name: "String"
+ }
+ },
+ exceptionMessage: {
+ serializedName: "exceptionMessage",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const JobStages: msRest.CompositeMapper = {
+ serializedName: "JobStages",
+ type: {
+ name: "Composite",
+ className: "JobStages",
+ modelProperties: {
+ stageName: {
+ serializedName: "stageName",
+ type: {
+ name: "String"
+ }
+ },
+ stageStatus: {
+ required: true,
+ serializedName: "stageStatus",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "None",
+ "InProgress",
+ "Succeeded",
+ "WaitingForAction",
+ "Failed",
+ "Cancelled",
+ "Cancelling"
+ ]
+ }
+ },
+ jobStageDetails: {
+ serializedName: "jobStageDetails",
+ type: {
+ name: "Object"
+ }
+ },
+ errorDetails: {
+ serializedName: "errorDetails",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDetails"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Schedule: msRest.CompositeMapper = {
+ serializedName: "Schedule",
+ type: {
+ name: "Composite",
+ className: "Schedule",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ policyList: {
+ serializedName: "policyList",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const JobDefinition: msRest.CompositeMapper = {
+ serializedName: "JobDefinition",
+ type: {
+ name: "Composite",
+ className: "JobDefinition",
+ modelProperties: {
+ ...DmsBaseObject.type.modelProperties,
+ dataSourceId: {
+ required: true,
+ serializedName: "properties.dataSourceId",
+ type: {
+ name: "String"
+ }
+ },
+ dataSinkId: {
+ required: true,
+ serializedName: "properties.dataSinkId",
+ type: {
+ name: "String"
+ }
+ },
+ schedules: {
+ serializedName: "properties.schedules",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Schedule"
+ }
+ }
+ }
+ },
+ state: {
+ required: true,
+ serializedName: "properties.state",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Disabled",
+ "Enabled",
+ "Supported"
+ ]
+ }
+ },
+ lastModifiedTime: {
+ serializedName: "properties.lastModifiedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ runLocation: {
+ serializedName: "properties.runLocation",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "none",
+ "australiaeast",
+ "australiasoutheast",
+ "brazilsouth",
+ "canadacentral",
+ "canadaeast",
+ "centralindia",
+ "centralus",
+ "eastasia",
+ "eastus",
+ "eastus2",
+ "japaneast",
+ "japanwest",
+ "koreacentral",
+ "koreasouth",
+ "southeastasia",
+ "southcentralus",
+ "southindia",
+ "northcentralus",
+ "northeurope",
+ "uksouth",
+ "ukwest",
+ "westcentralus",
+ "westeurope",
+ "westindia",
+ "westus",
+ "westus2"
+ ]
+ }
+ },
+ userConfirmation: {
+ serializedName: "properties.userConfirmation",
+ defaultValue: 'NotRequired',
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "NotRequired",
+ "Required"
+ ]
+ }
+ },
+ dataServiceInput: {
+ serializedName: "properties.dataServiceInput",
+ type: {
+ name: "Object"
+ }
+ },
+ customerSecrets: {
+ serializedName: "properties.customerSecrets",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CustomerSecret"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const JobDetails: msRest.CompositeMapper = {
+ serializedName: "JobDetails",
+ type: {
+ name: "Composite",
+ className: "JobDetails",
+ modelProperties: {
+ jobStages: {
+ serializedName: "jobStages",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "JobStages"
+ }
+ }
+ }
+ },
+ jobDefinition: {
+ serializedName: "jobDefinition",
+ type: {
+ name: "Composite",
+ className: "JobDefinition"
+ }
+ },
+ errorDetails: {
+ serializedName: "errorDetails",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ErrorDetails"
+ }
+ }
+ }
+ },
+ itemDetailsLink: {
+ serializedName: "itemDetailsLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Job: msRest.CompositeMapper = {
+ serializedName: "Job",
+ type: {
+ name: "Composite",
+ className: "Job",
+ modelProperties: {
+ ...DmsBaseObject.type.modelProperties,
+ status: {
+ required: true,
+ serializedName: "status",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "None",
+ "InProgress",
+ "Succeeded",
+ "WaitingForAction",
+ "Failed",
+ "Cancelled",
+ "Cancelling"
+ ]
+ }
+ },
+ startTime: {
+ required: true,
+ serializedName: "startTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ endTime: {
+ serializedName: "endTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ isCancellable: {
+ required: true,
+ serializedName: "properties.isCancellable",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "NotCancellable",
+ "Cancellable"
+ ]
+ }
+ },
+ bytesProcessed: {
+ serializedName: "properties.bytesProcessed",
+ type: {
+ name: "Number"
+ }
+ },
+ itemsProcessed: {
+ serializedName: "properties.itemsProcessed",
+ type: {
+ name: "Number"
+ }
+ },
+ totalBytesToProcess: {
+ serializedName: "properties.totalBytesToProcess",
+ type: {
+ name: "Number"
+ }
+ },
+ totalItemsToProcess: {
+ serializedName: "properties.totalItemsToProcess",
+ type: {
+ name: "Number"
+ }
+ },
+ details: {
+ serializedName: "properties.details",
+ type: {
+ name: "Composite",
+ className: "JobDetails"
+ }
+ },
+ dataSourceName: {
+ serializedName: "properties.dataSourceName",
+ type: {
+ name: "String"
+ }
+ },
+ dataSinkName: {
+ serializedName: "properties.dataSinkName",
+ type: {
+ name: "String"
+ }
+ },
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorModel"
+ }
+ }
+ }
+ }
+};
+
+export const JobDefinitionFilter: msRest.CompositeMapper = {
+ serializedName: "JobDefinitionFilter",
+ type: {
+ name: "Composite",
+ className: "JobDefinitionFilter",
+ modelProperties: {
+ state: {
+ required: true,
+ serializedName: "state",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "Disabled",
+ "Enabled",
+ "Supported"
+ ]
+ }
+ },
+ dataSource: {
+ serializedName: "dataSource",
+ type: {
+ name: "String"
+ }
+ },
+ lastModified: {
+ serializedName: "lastModified",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const JobFilter: msRest.CompositeMapper = {
+ serializedName: "JobFilter",
+ type: {
+ name: "Composite",
+ className: "JobFilter",
+ modelProperties: {
+ status: {
+ required: true,
+ serializedName: "status",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "None",
+ "InProgress",
+ "Succeeded",
+ "WaitingForAction",
+ "Failed",
+ "Cancelled",
+ "Cancelling"
+ ]
+ }
+ },
+ startTime: {
+ serializedName: "startTime",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const Key: msRest.CompositeMapper = {
+ serializedName: "Key",
+ type: {
+ name: "Composite",
+ className: "Key",
+ modelProperties: {
+ keyModulus: {
+ required: true,
+ serializedName: "keyModulus",
+ type: {
+ name: "String"
+ }
+ },
+ keyExponent: {
+ required: true,
+ serializedName: "keyExponent",
+ type: {
+ name: "String"
+ }
+ },
+ encryptionChunkSizeInBytes: {
+ required: true,
+ serializedName: "encryptionChunkSizeInBytes",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const PublicKey: msRest.CompositeMapper = {
+ serializedName: "PublicKey",
+ type: {
+ name: "Composite",
+ className: "PublicKey",
+ modelProperties: {
+ ...DmsBaseObject.type.modelProperties,
+ dataServiceLevel1Key: {
+ required: true,
+ serializedName: "properties.dataServiceLevel1Key",
+ type: {
+ name: "Composite",
+ className: "Key"
+ }
+ },
+ dataServiceLevel2Key: {
+ required: true,
+ serializedName: "properties.dataServiceLevel2Key",
+ type: {
+ name: "Composite",
+ className: "Key"
+ }
+ }
+ }
+ }
+};
+
+export const Sku: msRest.CompositeMapper = {
+ serializedName: "Sku",
+ type: {
+ name: "Composite",
+ className: "Sku",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ tier: {
+ serializedName: "tier",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RunParameters: msRest.CompositeMapper = {
+ serializedName: "RunParameters",
+ type: {
+ name: "Composite",
+ className: "RunParameters",
+ modelProperties: {
+ userConfirmation: {
+ serializedName: "userConfirmation",
+ defaultValue: 'NotRequired',
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "NotRequired",
+ "Required"
+ ]
+ }
+ },
+ dataServiceInput: {
+ serializedName: "dataServiceInput",
+ type: {
+ name: "Object"
+ }
+ },
+ customerSecrets: {
+ serializedName: "customerSecrets",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CustomerSecret"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const AvailableProviderOperations: msRest.CompositeMapper = {
+ serializedName: "AvailableProviderOperations",
+ type: {
+ name: "Composite",
+ className: "AvailableProviderOperations",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "AvailableProviderOperation"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DataManagerList: msRest.CompositeMapper = {
+ serializedName: "DataManagerList",
+ type: {
+ name: "Composite",
+ className: "DataManagerList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "DataManager"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const DataServiceList: msRest.CompositeMapper = {
+ serializedName: "DataServiceList",
+ type: {
+ name: "Composite",
+ className: "DataServiceList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "DataService"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const JobDefinitionList: msRest.CompositeMapper = {
+ serializedName: "JobDefinitionList",
+ type: {
+ name: "Composite",
+ className: "JobDefinitionList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "JobDefinition"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const JobList: msRest.CompositeMapper = {
+ serializedName: "JobList",
+ type: {
+ name: "Composite",
+ className: "JobList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Job"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DataStoreList: msRest.CompositeMapper = {
+ serializedName: "DataStoreList",
+ type: {
+ name: "Composite",
+ className: "DataStoreList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "DataStore"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const DataStoreTypeList: msRest.CompositeMapper = {
+ serializedName: "DataStoreTypeList",
+ type: {
+ name: "Composite",
+ className: "DataStoreTypeList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "DataStoreType"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PublicKeyList: msRest.CompositeMapper = {
+ serializedName: "PublicKeyList",
+ type: {
+ name: "Composite",
+ className: "PublicKeyList",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PublicKey"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/operationsMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/operationsMappers.ts
new file mode 100644
index 000000000000..3b51ba295b56
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/operationsMappers.ts
@@ -0,0 +1,17 @@
+/*
+ * 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 {
+ AvailableProviderOperations,
+ AvailableProviderOperation,
+ AvailableProviderOperationDisplay,
+ CloudError
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/parameters.ts b/packages/@azure/arm-hybriddatamanager/lib/models/parameters.ts
new file mode 100644
index 000000000000..e0ae3aa52304
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/parameters.ts
@@ -0,0 +1,162 @@
+/*
+ * 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 apiVersion: msRest.OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ required: true,
+ serializedName: "api-version",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const dataManagerName: msRest.OperationURLParameter = {
+ parameterPath: "dataManagerName",
+ mapper: {
+ required: true,
+ serializedName: "dataManagerName",
+ constraints: {
+ MaxLength: 24,
+ MinLength: 3,
+ Pattern: /^[-\w\.]+$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const dataServiceName: msRest.OperationURLParameter = {
+ parameterPath: "dataServiceName",
+ mapper: {
+ required: true,
+ serializedName: "dataServiceName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const dataStoreName: msRest.OperationURLParameter = {
+ parameterPath: "dataStoreName",
+ mapper: {
+ required: true,
+ serializedName: "dataStoreName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const dataStoreTypeName: msRest.OperationURLParameter = {
+ parameterPath: "dataStoreTypeName",
+ mapper: {
+ required: true,
+ serializedName: "dataStoreTypeName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const expand: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "expand"
+ ],
+ mapper: {
+ serializedName: "$expand",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const filter: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "filter"
+ ],
+ mapper: {
+ serializedName: "$filter",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const jobDefinitionName: msRest.OperationURLParameter = {
+ parameterPath: "jobDefinitionName",
+ mapper: {
+ required: true,
+ serializedName: "jobDefinitionName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const jobId: msRest.OperationURLParameter = {
+ parameterPath: "jobId",
+ mapper: {
+ required: true,
+ serializedName: "jobId",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const nextPageLink: msRest.OperationURLParameter = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const publicKeyName: msRest.OperationURLParameter = {
+ parameterPath: "publicKeyName",
+ mapper: {
+ required: true,
+ serializedName: "publicKeyName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const resourceGroupName: msRest.OperationURLParameter = {
+ parameterPath: "resourceGroupName",
+ mapper: {
+ required: true,
+ serializedName: "resourceGroupName",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const subscriptionId: msRest.OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ required: true,
+ serializedName: "subscriptionId",
+ type: {
+ name: "String"
+ }
+ }
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/models/publicKeysMappers.ts b/packages/@azure/arm-hybriddatamanager/lib/models/publicKeysMappers.ts
new file mode 100644
index 000000000000..927574bba3e2
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/models/publicKeysMappers.ts
@@ -0,0 +1,29 @@
+/*
+ * 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 {
+ PublicKeyList,
+ PublicKey,
+ DmsBaseObject,
+ Key,
+ CloudError,
+ DataService,
+ DataStore,
+ CustomerSecret,
+ DataStoreType,
+ JobDefinition,
+ Schedule,
+ Job,
+ JobDetails,
+ JobStages,
+ ErrorDetails,
+ ErrorModel
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/dataManagers.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/dataManagers.ts
new file mode 100644
index 000000000000..459974adcc03
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/dataManagers.ts
@@ -0,0 +1,325 @@
+/*
+ * 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/dataManagersMappers";
+import * as Parameters from "../models/parameters";
+import { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a DataManagers. */
+export class DataManagers {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a DataManagers.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists all the data manager resources available under the subscription.
+ * @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;
+ }
+
+ /**
+ * Lists all the data manager resources available under the given resource group.
+ * @param resourceGroupName The Resource Group Name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ options
+ },
+ listByResourceGroupOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets information about the specified data manager resource.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a new data manager resource with the specified parameters. Existing resources cannot be
+ * updated with this API
+ * and should instead be updated with the Update data manager resource API.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param dataManager Data manager resource details from request body.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, dataManagerName: string, dataManager: Models.DataManager, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreate(resourceGroupName,dataManagerName,dataManager,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Deletes a data manager resource in Microsoft Azure.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Creates a new data manager resource with the specified parameters. Existing resources cannot be
+ * updated with this API
+ * and should instead be updated with the Update data manager resource API.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param dataManager Data manager resource details from request body.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreate(resourceGroupName: string, dataManagerName: string, dataManager: Models.DataManager, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ dataManager,
+ options
+ },
+ beginCreateOperationSpec,
+ options);
+ }
+
+ /**
+ * Deletes a data manager resource in Microsoft Azure.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.HybridData/dataManagers",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataManagerList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataManagerList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataManager
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "dataManager",
+ mapper: {
+ ...Mappers.DataManager,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataManager
+ },
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/dataServices.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/dataServices.ts
new file mode 100644
index 000000000000..3871db1acabc
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/dataServices.ts
@@ -0,0 +1,210 @@
+/*
+ * 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/dataServicesMappers";
+import * as Parameters from "../models/parameters";
+import { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a DataServices. */
+export class DataServices {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a DataServices.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * This method gets all the data services.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataManagerOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets the data service that match the data service name given.
+ * @param dataServiceName The name of the data service that is being queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param dataServiceName The name of the data service that is being queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ get(dataServiceName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataServiceName The name of the data service that is being queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataServiceName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets all the data services.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataManagerNext(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
+ */
+ listByDataManagerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataManagerNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByDataManagerOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataServiceList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataService
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataServiceList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/dataStoreTypes.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/dataStoreTypes.ts
new file mode 100644
index 000000000000..41cc52c2cdc9
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/dataStoreTypes.ts
@@ -0,0 +1,210 @@
+/*
+ * 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/dataStoreTypesMappers";
+import * as Parameters from "../models/parameters";
+import { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a DataStoreTypes. */
+export class DataStoreTypes {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a DataStoreTypes.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets all the data store/repository types that the resource supports.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataManagerOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets the data store/repository type given its name.
+ * @param dataStoreTypeName The data store/repository type name for which details are needed.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(dataStoreTypeName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param dataStoreTypeName The data store/repository type name for which details are needed.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ get(dataStoreTypeName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataStoreTypeName The data store/repository type name for which details are needed.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(dataStoreTypeName: string, resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(dataStoreTypeName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataStoreTypeName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets all the data store/repository types that the resource supports.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataManagerNext(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
+ */
+ listByDataManagerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataManagerNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByDataManagerOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStoreTypes",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStoreTypeList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStoreTypes/{dataStoreTypeName}",
+ urlParameters: [
+ Parameters.dataStoreTypeName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStoreType
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStoreTypeList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/dataStores.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/dataStores.ts
new file mode 100644
index 000000000000..e4afda0f42fb
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/dataStores.ts
@@ -0,0 +1,348 @@
+/*
+ * 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/dataStoresMappers";
+import * as Parameters from "../models/parameters";
+import { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a DataStores. */
+export class DataStores {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a DataStores.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets all the data stores/repositories in the given resource.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: Models.DataStoresListByDataManagerOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options: Models.DataStoresListByDataManagerOptionalParams, callback: msRest.ServiceCallback): void;
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: Models.DataStoresListByDataManagerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataManagerOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets the data store/repository by name.
+ * @param dataStoreName The data store/repository name queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(dataStoreName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param dataStoreName The data store/repository name queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ get(dataStoreName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataStoreName The data store/repository name queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(dataStoreName: string, resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(dataStoreName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataStoreName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates or updates the data store/repository in the data manager.
+ * @param dataStoreName The data store/repository name to be created or updated.
+ * @param dataStore The data store/repository object to be created or updated.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(dataStoreName: string, dataStore: Models.DataStore, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreateOrUpdate(dataStoreName,dataStore,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * This method deletes the given data store/repository.
+ * @param dataStoreName The data store/repository name to be deleted.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(dataStoreName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(dataStoreName,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Creates or updates the data store/repository in the data manager.
+ * @param dataStoreName The data store/repository name to be created or updated.
+ * @param dataStore The data store/repository object to be created or updated.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreateOrUpdate(dataStoreName: string, dataStore: Models.DataStore, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataStoreName,
+ dataStore,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginCreateOrUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * This method deletes the given data store/repository.
+ * @param dataStoreName The data store/repository name to be deleted.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(dataStoreName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataStoreName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * Gets all the data stores/repositories in the given resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataManagerNext(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
+ */
+ listByDataManagerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataManagerNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByDataManagerOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStores",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStoreList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStores/{dataStoreName}",
+ urlParameters: [
+ Parameters.dataStoreName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStore
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStores/{dataStoreName}",
+ urlParameters: [
+ Parameters.dataStoreName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "dataStore",
+ mapper: {
+ ...Mappers.DataStore,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStore
+ },
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStores/{dataStoreName}",
+ urlParameters: [
+ Parameters.dataStoreName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.DataStoreList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/index.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/index.ts
new file mode 100644
index 000000000000..239d42c7f659
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/index.ts
@@ -0,0 +1,18 @@
+/*
+ * 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 "./operations";
+export * from "./dataManagers";
+export * from "./dataServices";
+export * from "./jobDefinitions";
+export * from "./jobs";
+export * from "./dataStores";
+export * from "./dataStoreTypes";
+export * from "./publicKeys";
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/jobDefinitions.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/jobDefinitions.ts
new file mode 100644
index 000000000000..7d7e8f693973
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/jobDefinitions.ts
@@ -0,0 +1,555 @@
+/*
+ * 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/jobDefinitionsMappers";
+import * as Parameters from "../models/parameters";
+import { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a JobDefinitions. */
+export class JobDefinitions {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a JobDefinitions.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * This method gets all the job definitions of the given data service name.
+ * @param dataServiceName The data service type of interest.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobDefinitionsListByDataServiceOptionalParams): Promise;
+ /**
+ * @param dataServiceName The data service type of interest.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataServiceName The data service type of interest.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options: Models.JobDefinitionsListByDataServiceOptionalParams, callback: msRest.ServiceCallback): void;
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobDefinitionsListByDataServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataServiceName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataServiceOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets job definition object by name.
+ * @param dataServiceName The data service name of the job definition
+ * @param jobDefinitionName The job definition name that is being queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param dataServiceName The data service name of the job definition
+ * @param jobDefinitionName The job definition name that is being queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ get(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataServiceName The data service name of the job definition
+ * @param jobDefinitionName The job definition name that is being queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates or updates a job definition.
+ * @param dataServiceName The data service type of the job definition.
+ * @param jobDefinitionName The job definition name to be created or updated.
+ * @param jobDefinition Job Definition object to be created or updated.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ createOrUpdate(dataServiceName: string, jobDefinitionName: string, jobDefinition: Models.JobDefinition, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreateOrUpdate(dataServiceName,jobDefinitionName,jobDefinition,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * This method deletes the given job definition.
+ * @param dataServiceName The data service type of the job definition.
+ * @param jobDefinitionName The job definition name to be deleted.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(dataServiceName,jobDefinitionName,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * This method runs a job instance of the given job definition.
+ * @param dataServiceName The data service type of the job definition.
+ * @param jobDefinitionName Name of the job definition.
+ * @param runParameters Run time parameters for the job definition.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ run(dataServiceName: string, jobDefinitionName: string, runParameters: Models.RunParameters, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginRun(dataServiceName,jobDefinitionName,runParameters,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * This method gets all the job definitions of the given data manager resource.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: Models.JobDefinitionsListByDataManagerOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options: Models.JobDefinitionsListByDataManagerOptionalParams, callback: msRest.ServiceCallback): void;
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: Models.JobDefinitionsListByDataManagerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataManagerOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates or updates a job definition.
+ * @param dataServiceName The data service type of the job definition.
+ * @param jobDefinitionName The job definition name to be created or updated.
+ * @param jobDefinition Job Definition object to be created or updated.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreateOrUpdate(dataServiceName: string, jobDefinitionName: string, jobDefinition: Models.JobDefinition, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ jobDefinition,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginCreateOrUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * This method deletes the given job definition.
+ * @param dataServiceName The data service type of the job definition.
+ * @param jobDefinitionName The job definition name to be deleted.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * This method runs a job instance of the given job definition.
+ * @param dataServiceName The data service type of the job definition.
+ * @param jobDefinitionName Name of the job definition.
+ * @param runParameters Run time parameters for the job definition.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginRun(dataServiceName: string, jobDefinitionName: string, runParameters: Models.RunParameters, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ runParameters,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginRunOperationSpec,
+ options);
+ }
+
+ /**
+ * This method gets all the job definitions of the given data service name.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataServiceNext(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
+ */
+ listByDataServiceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataServiceNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets all the job definitions of the given data manager resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataManagerNext(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
+ */
+ listByDataManagerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataManagerNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByDataServiceOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobDefinitionList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobDefinition
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/jobDefinitions",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobDefinitionList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "jobDefinition",
+ mapper: {
+ ...Mappers.JobDefinition,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobDefinition
+ },
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginRunOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/run",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "runParameters",
+ mapper: {
+ ...Mappers.RunParameters,
+ required: true
+ }
+ },
+ responses: {
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataServiceNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobDefinitionList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobDefinitionList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/jobs.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/jobs.ts
new file mode 100644
index 000000000000..ee96dc78492d
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/jobs.ts
@@ -0,0 +1,604 @@
+/*
+ * 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/jobsMappers";
+import * as Parameters from "../models/parameters";
+import { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a Jobs. */
+export class Jobs {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a Jobs.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * This method gets all the jobs of a given job definition.
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition for which jobs are needed.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByJobDefinition(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobsListByJobDefinitionOptionalParams): Promise;
+ /**
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition for which jobs are needed.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByJobDefinition(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition for which jobs are needed.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByJobDefinition(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options: Models.JobsListByJobDefinitionOptionalParams, callback: msRest.ServiceCallback): void;
+ listByJobDefinition(dataServiceName: string, jobDefinitionName: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobsListByJobDefinitionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByJobDefinitionOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets a data manager job given the jobId.
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobsGetOptionalParams): Promise;
+ /**
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ get(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options: Models.JobsGetOptionalParams, callback: msRest.ServiceCallback): void;
+ get(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ jobId,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Cancels the given job.
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ cancel(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCancel(dataServiceName,jobDefinitionName,jobId,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Resumes the given job.
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ resume(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginResume(dataServiceName,jobDefinitionName,jobId,resourceGroupName,dataManagerName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * This method gets all the jobs of a data service type in a given resource.
+ * @param dataServiceName The name of the data service of interest.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobsListByDataServiceOptionalParams): Promise;
+ /**
+ * @param dataServiceName The name of the data service of interest.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param dataServiceName The name of the data service of interest.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options: Models.JobsListByDataServiceOptionalParams, callback: msRest.ServiceCallback): void;
+ listByDataService(dataServiceName: string, resourceGroupName: string, dataManagerName: string, options?: Models.JobsListByDataServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ dataServiceName,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataServiceOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets all the jobs at the data manager resource level.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: Models.JobsListByDataManagerOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options: Models.JobsListByDataManagerOptionalParams, callback: msRest.ServiceCallback): void;
+ listByDataManager(resourceGroupName: string, dataManagerName: string, options?: Models.JobsListByDataManagerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ listByDataManagerOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Cancels the given job.
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCancel(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ jobId,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginCancelOperationSpec,
+ options);
+ }
+
+ /**
+ * Resumes the given job.
+ * @param dataServiceName The name of the data service of the job definition.
+ * @param jobDefinitionName The name of the job definition of the job.
+ * @param jobId The job id of the job queried.
+ * @param resourceGroupName The Resource Group Name
+ * @param dataManagerName The name of the DataManager Resource within the specified resource group.
+ * DataManager names must be between 3 and 24 characters in length and use any alphanumeric and
+ * underscore only
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginResume(dataServiceName: string, jobDefinitionName: string, jobId: string, resourceGroupName: string, dataManagerName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ dataServiceName,
+ jobDefinitionName,
+ jobId,
+ resourceGroupName,
+ dataManagerName,
+ options
+ },
+ beginResumeOperationSpec,
+ options);
+ }
+
+ /**
+ * This method gets all the jobs of a given job definition.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByJobDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByJobDefinitionNext(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
+ */
+ listByJobDefinitionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByJobDefinitionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByJobDefinitionNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets all the jobs of a data service type in a given resource.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataServiceNext(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
+ */
+ listByDataServiceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataServiceNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * This method gets all the jobs at the data manager resource level.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByDataManagerNext(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
+ */
+ listByDataManagerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByDataManagerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByDataManagerNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listByJobDefinitionOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.jobId,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.expand
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Job
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataServiceOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobs",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/jobs",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.filter
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCancelOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}/cancel",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.jobId,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginResumeOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataServices/{dataServiceName}/jobDefinitions/{jobDefinitionName}/jobs/{jobId}/resume",
+ urlParameters: [
+ Parameters.dataServiceName,
+ Parameters.jobDefinitionName,
+ Parameters.jobId,
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.dataManagerName
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByJobDefinitionNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataServiceNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByDataManagerNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.JobList
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-hybriddatamanager/lib/operations/operations.ts b/packages/@azure/arm-hybriddatamanager/lib/operations/operations.ts
new file mode 100644
index 000000000000..a9d33794044a
--- /dev/null
+++ b/packages/@azure/arm-hybriddatamanager/lib/operations/operations.ts
@@ -0,0 +1,123 @@
+/*
+ * 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 { HybridDataManagementClientContext } from "../hybridDataManagementClientContext";
+
+/** Class representing a Operations. */
+export class Operations {
+ private readonly client: HybridDataManagementClientContext;
+
+ /**
+ * Create a Operations.
+ * @param {HybridDataManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: HybridDataManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary This method gets all the 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