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
[AutoPR datafactory/resource-manager] Add two API-s to integration ru…
…ntime (#3360)

* Generated from ac46263d530ef85bae2d611e77ae63f2797897f4

Add two API-s to integration runtime

* Generated from 43e82243c77750188200ef16df385cecd49ff652

Fixed model validation error for the new APIs

* Generated from 5c8e79e5018783b5e2c0c119c72cd64dc0194fba

Improve the properties description per to review comments
  • Loading branch information
AutorestCI authored Aug 22, 2018
commit 8108543378ac377ecc1888ffab60f9e797ac8a72
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 ID of the subscription that the
* linked integration runtime belongs to.
* @member {string} [dataFactoryName] The name of the data factory that the
* linked integration runtime belongs to.
* @member {string} [dataFactoryLocation] The location of the data factory
* that the linked integration runtime belongs 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;
26 changes: 25 additions & 1 deletion 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 ID of the subscription that the linked
* integration runtime belongs to.
* @member {string} [dataFactoryName] The name of the data factory that the
* linked integration runtime belongs to.
* @member {string} [dataFactoryLocation] The location of the data factory that
* the linked integration runtime belongs to.
*/
export interface CreateLinkedIntegrationRuntimeRequest {
name?: string;
subscriptionId?: string;
dataFactoryName?: string;
dataFactoryLocation?: string;
}

/**
* @class
* Initializes a new instance of the ParameterSpecification class.
Expand Down Expand Up @@ -6800,7 +6821,7 @@ export interface LinkedIntegrationRuntime {
* @member {date} [lastStartTime] The time the node last started up.
* @member {date} [lastStopTime] The integration runtime node last stop time.
* @member {string} [lastUpdateResult] The result of the last integration
* runtime node update. Possible values include: 'Succeed', 'Fail'
* runtime node update. Possible values include: 'None', 'Succeed', 'Fail'
* @member {date} [lastStartUpdateTime] The last time for the integration
* runtime node update start.
* @member {date} [lastEndUpdateTime] The last time for the integration runtime
Expand Down Expand Up @@ -6870,6 +6891,8 @@ export interface SelfHostedIntegrationRuntimeNode {
* @member {string} [pushedVersion] The version that the integration runtime is
* going to update to.
* @member {string} [latestVersion] The latest version on download center.
* @member {date} [autoUpdateETA] The estimated time when the self-hosted
* integration runtime will be updated.
*/
export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus {
readonly createTime?: Date;
Expand All @@ -6887,6 +6910,7 @@ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeSt
links?: LinkedIntegrationRuntime[];
readonly pushedVersion?: string;
readonly latestVersion?: string;
readonly autoUpdateETA?: Date;
}

/**
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
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SelfHostedIntegrationRuntimeNode {
* @member {date} [lastStartTime] The time the node last started up.
* @member {date} [lastStopTime] The integration runtime node last stop time.
* @member {string} [lastUpdateResult] The result of the last integration
* runtime node update. Possible values include: 'Succeed', 'Fail'
* runtime node update. Possible values include: 'None', 'Succeed', 'Fail'
* @member {date} [lastStartUpdateTime] The last time for the integration
* runtime node update start.
* @member {date} [lastEndUpdateTime] The last time for the integration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu
* @member {string} [pushedVersion] The version that the integration runtime
* is going to update to.
* @member {string} [latestVersion] The latest version on download center.
* @member {date} [autoUpdateETA] The estimated time when the self-hosted
* integration runtime will be updated.
*/
constructor() {
super();
Expand Down Expand Up @@ -256,6 +258,14 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu
type: {
name: 'String'
}
},
autoUpdateETA: {
required: false,
readOnly: true,
serializedName: 'typeProperties.autoUpdateETA',
type: {
name: 'DateTime'
}
}
}
}
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
* ID of the subscription that the linked integration runtime belongs to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryName] The
* name of the data factory that the linked integration runtime belongs to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryLocation]
* The location of the data factory that the linked integration runtime belongs
* 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
* ID of the subscription that the linked integration runtime belongs to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryName] The
* name of the data factory that the linked integration runtime belongs to.
*
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryLocation]
* The location of the data factory that the linked integration runtime belongs
* 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