Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Generated from ac46263d530ef85bae2d611e77ae63f2797897f4
Add two API-s to integration runtime
  • Loading branch information
AutorestCI committed Aug 17, 2018
commit 46884af7720e930d3aea760d1a458c95f2861b4a
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
* 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.
*/

'use strict';

/**
* The linked integration runtime information.
*
*/
class CreateLinkedIntegrationRuntimeRequest {
/**
* Create a CreateLinkedIntegrationRuntimeRequest.
* @member {string} [name] The name of the linked integration runtime.
* @member {string} [subscriptionId] The subscription ID for which the linked
* integration runtime belong to.
* @member {string} [dataFactoryName] The name of the data factory for which
* the linked integration runtime belong to.
* @member {string} [dataFactoryLocation] The location of the data factory
* for which the linked integration runtime belong to.
*/
constructor() {
}

/**
* Defines the metadata of CreateLinkedIntegrationRuntimeRequest
*
* @returns {object} metadata of CreateLinkedIntegrationRuntimeRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'CreateLinkedIntegrationRuntimeRequest',
type: {
name: 'Composite',
className: 'CreateLinkedIntegrationRuntimeRequest',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
subscriptionId: {
required: false,
serializedName: 'subscriptionId',
type: {
name: 'String'
}
},
dataFactoryName: {
required: false,
serializedName: 'dataFactoryName',
type: {
name: 'String'
}
},
dataFactoryLocation: {
required: false,
serializedName: 'dataFactoryLocation',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CreateLinkedIntegrationRuntimeRequest;
21 changes: 21 additions & 0 deletions lib/services/datafactoryManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,27 @@ export interface LinkedIntegrationRuntimeRequest {
linkedFactoryName: string;
}

/**
* @class
* Initializes a new instance of the CreateLinkedIntegrationRuntimeRequest class.
* @constructor
* The linked integration runtime information.
*
* @member {string} [name] The name of the linked integration runtime.
* @member {string} [subscriptionId] The subscription ID for which the linked
* integration runtime belong to.
* @member {string} [dataFactoryName] The name of the data factory for which
* the linked integration runtime belong to.
* @member {string} [dataFactoryLocation] The location of the data factory for
* which the linked integration runtime belong to.
*/
export interface CreateLinkedIntegrationRuntimeRequest {
name?: string;
subscriptionId?: string;
dataFactoryName?: string;
dataFactoryLocation?: string;
}

/**
* @class
* Initializes a new instance of the ParameterSpecification class.
Expand Down
1 change: 1 addition & 0 deletions lib/services/datafactoryManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exports.IntegrationRuntimeStatusListResponse = require('./integrationRuntimeStat
exports.UpdateIntegrationRuntimeRequest = require('./updateIntegrationRuntimeRequest');
exports.UpdateIntegrationRuntimeNodeRequest = require('./updateIntegrationRuntimeNodeRequest');
exports.LinkedIntegrationRuntimeRequest = require('./linkedIntegrationRuntimeRequest');
exports.CreateLinkedIntegrationRuntimeRequest = require('./createLinkedIntegrationRuntimeRequest');
exports.ParameterSpecification = require('./parameterSpecification');
exports.LinkedService = require('./linkedService');
exports.LinkedServiceResource = require('./linkedServiceResource');
Expand Down
164 changes: 164 additions & 0 deletions lib/services/datafactoryManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1833,6 +1833,102 @@ export interface IntegrationRuntimes {
removeLinks(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, linkedIntegrationRuntimeRequest: models.LinkedIntegrationRuntimeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* Create a linked integration runtime entry in a shared integration runtime.
*
* @param {string} resourceGroupName The resource group name.
*
* @param {string} factoryName The factory name.
*
* @param {string} integrationRuntimeName The integration runtime name.
*
* @param {object} createLinkedIntegrationRuntimeRequest The linked integration
* runtime properties.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.name] The name of the
* linked integration runtime.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.subscriptionId] The
* subscription ID for which the linked integration runtime belong to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryName] The
* name of the data factory for which the linked integration runtime belong to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryLocation]
* The location of the data factory for which the linked integration runtime
* belong to.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<IntegrationRuntimeStatusResponse>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
createLinkedIntegrationRuntimeWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.IntegrationRuntimeStatusResponse>>;

/**
* Create a linked integration runtime entry in a shared integration runtime.
*
* @param {string} resourceGroupName The resource group name.
*
* @param {string} factoryName The factory name.
*
* @param {string} integrationRuntimeName The integration runtime name.
*
* @param {object} createLinkedIntegrationRuntimeRequest The linked integration
* runtime properties.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.name] The name of the
* linked integration runtime.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.subscriptionId] The
* subscription ID for which the linked integration runtime belong to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryName] The
* name of the data factory for which the linked integration runtime belong to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryLocation]
* The location of the data factory for which the linked integration runtime
* belong to.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {IntegrationRuntimeStatusResponse} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur.
* See {@link IntegrationRuntimeStatusResponse} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.IntegrationRuntimeStatusResponse>;
createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, callback: ServiceCallback<models.IntegrationRuntimeStatusResponse>): void;
createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.IntegrationRuntimeStatusResponse>): void;


/**
* Starts a ManagedReserved type integration runtime.
*
Expand Down Expand Up @@ -2026,6 +2122,74 @@ export interface IntegrationRuntimes {
export interface IntegrationRuntimeNodes {


/**
* Gets a self-hosted integration runtime node.
*
* @param {string} resourceGroupName The resource group name.
*
* @param {string} factoryName The factory name.
*
* @param {string} integrationRuntimeName The integration runtime name.
*
* @param {string} nodeName The integration runtime node name.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<SelfHostedIntegrationRuntimeNode>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.SelfHostedIntegrationRuntimeNode>>;

/**
* Gets a self-hosted integration runtime node.
*
* @param {string} resourceGroupName The resource group name.
*
* @param {string} factoryName The factory name.
*
* @param {string} integrationRuntimeName The integration runtime name.
*
* @param {string} nodeName The integration runtime node name.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {SelfHostedIntegrationRuntimeNode} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {SelfHostedIntegrationRuntimeNode} [result] - The deserialized result object if an error did not occur.
* See {@link SelfHostedIntegrationRuntimeNode} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.SelfHostedIntegrationRuntimeNode>;
get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, callback: ServiceCallback<models.SelfHostedIntegrationRuntimeNode>): void;
get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.SelfHostedIntegrationRuntimeNode>): void;


/**
* Deletes a self-hosted integration runtime node.
*
Expand Down
Loading