Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 8108543

Browse files
authored
[AutoPR datafactory/resource-manager] Add two API-s to integration runtime (#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
1 parent ac36369 commit 8108543

File tree

9 files changed

+942
-3
lines changed

9 files changed

+942
-3
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
* Changes may cause incorrect behavior and will be lost if the code is
8+
* regenerated.
9+
*/
10+
11+
'use strict';
12+
13+
/**
14+
* The linked integration runtime information.
15+
*
16+
*/
17+
class CreateLinkedIntegrationRuntimeRequest {
18+
/**
19+
* Create a CreateLinkedIntegrationRuntimeRequest.
20+
* @member {string} [name] The name of the linked integration runtime.
21+
* @member {string} [subscriptionId] The ID of the subscription that the
22+
* linked integration runtime belongs to.
23+
* @member {string} [dataFactoryName] The name of the data factory that the
24+
* linked integration runtime belongs to.
25+
* @member {string} [dataFactoryLocation] The location of the data factory
26+
* that the linked integration runtime belongs to.
27+
*/
28+
constructor() {
29+
}
30+
31+
/**
32+
* Defines the metadata of CreateLinkedIntegrationRuntimeRequest
33+
*
34+
* @returns {object} metadata of CreateLinkedIntegrationRuntimeRequest
35+
*
36+
*/
37+
mapper() {
38+
return {
39+
required: false,
40+
serializedName: 'CreateLinkedIntegrationRuntimeRequest',
41+
type: {
42+
name: 'Composite',
43+
className: 'CreateLinkedIntegrationRuntimeRequest',
44+
modelProperties: {
45+
name: {
46+
required: false,
47+
serializedName: 'name',
48+
type: {
49+
name: 'String'
50+
}
51+
},
52+
subscriptionId: {
53+
required: false,
54+
serializedName: 'subscriptionId',
55+
type: {
56+
name: 'String'
57+
}
58+
},
59+
dataFactoryName: {
60+
required: false,
61+
serializedName: 'dataFactoryName',
62+
type: {
63+
name: 'String'
64+
}
65+
},
66+
dataFactoryLocation: {
67+
required: false,
68+
serializedName: 'dataFactoryLocation',
69+
type: {
70+
name: 'String'
71+
}
72+
}
73+
}
74+
}
75+
};
76+
}
77+
}
78+
79+
module.exports = CreateLinkedIntegrationRuntimeRequest;

lib/services/datafactoryManagement/lib/models/index.d.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,27 @@ export interface LinkedIntegrationRuntimeRequest {
353353
linkedFactoryName: string;
354354
}
355355

356+
/**
357+
* @class
358+
* Initializes a new instance of the CreateLinkedIntegrationRuntimeRequest class.
359+
* @constructor
360+
* The linked integration runtime information.
361+
*
362+
* @member {string} [name] The name of the linked integration runtime.
363+
* @member {string} [subscriptionId] The ID of the subscription that the linked
364+
* integration runtime belongs to.
365+
* @member {string} [dataFactoryName] The name of the data factory that the
366+
* linked integration runtime belongs to.
367+
* @member {string} [dataFactoryLocation] The location of the data factory that
368+
* the linked integration runtime belongs to.
369+
*/
370+
export interface CreateLinkedIntegrationRuntimeRequest {
371+
name?: string;
372+
subscriptionId?: string;
373+
dataFactoryName?: string;
374+
dataFactoryLocation?: string;
375+
}
376+
356377
/**
357378
* @class
358379
* Initializes a new instance of the ParameterSpecification class.
@@ -6800,7 +6821,7 @@ export interface LinkedIntegrationRuntime {
68006821
* @member {date} [lastStartTime] The time the node last started up.
68016822
* @member {date} [lastStopTime] The integration runtime node last stop time.
68026823
* @member {string} [lastUpdateResult] The result of the last integration
6803-
* runtime node update. Possible values include: 'Succeed', 'Fail'
6824+
* runtime node update. Possible values include: 'None', 'Succeed', 'Fail'
68046825
* @member {date} [lastStartUpdateTime] The last time for the integration
68056826
* runtime node update start.
68066827
* @member {date} [lastEndUpdateTime] The last time for the integration runtime
@@ -6870,6 +6891,8 @@ export interface SelfHostedIntegrationRuntimeNode {
68706891
* @member {string} [pushedVersion] The version that the integration runtime is
68716892
* going to update to.
68726893
* @member {string} [latestVersion] The latest version on download center.
6894+
* @member {date} [autoUpdateETA] The estimated time when the self-hosted
6895+
* integration runtime will be updated.
68736896
*/
68746897
export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeStatus {
68756898
readonly createTime?: Date;
@@ -6887,6 +6910,7 @@ export interface SelfHostedIntegrationRuntimeStatus extends IntegrationRuntimeSt
68876910
links?: LinkedIntegrationRuntime[];
68886911
readonly pushedVersion?: string;
68896912
readonly latestVersion?: string;
6913+
readonly autoUpdateETA?: Date;
68906914
}
68916915

68926916
/**

lib/services/datafactoryManagement/lib/models/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ exports.IntegrationRuntimeStatusListResponse = require('./integrationRuntimeStat
3737
exports.UpdateIntegrationRuntimeRequest = require('./updateIntegrationRuntimeRequest');
3838
exports.UpdateIntegrationRuntimeNodeRequest = require('./updateIntegrationRuntimeNodeRequest');
3939
exports.LinkedIntegrationRuntimeRequest = require('./linkedIntegrationRuntimeRequest');
40+
exports.CreateLinkedIntegrationRuntimeRequest = require('./createLinkedIntegrationRuntimeRequest');
4041
exports.ParameterSpecification = require('./parameterSpecification');
4142
exports.LinkedService = require('./linkedService');
4243
exports.LinkedServiceResource = require('./linkedServiceResource');

lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SelfHostedIntegrationRuntimeNode {
3939
* @member {date} [lastStartTime] The time the node last started up.
4040
* @member {date} [lastStopTime] The integration runtime node last stop time.
4141
* @member {string} [lastUpdateResult] The result of the last integration
42-
* runtime node update. Possible values include: 'Succeed', 'Fail'
42+
* runtime node update. Possible values include: 'None', 'Succeed', 'Fail'
4343
* @member {date} [lastStartUpdateTime] The last time for the integration
4444
* runtime node update start.
4545
* @member {date} [lastEndUpdateTime] The last time for the integration

lib/services/datafactoryManagement/lib/models/selfHostedIntegrationRuntimeStatus.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu
4949
* @member {string} [pushedVersion] The version that the integration runtime
5050
* is going to update to.
5151
* @member {string} [latestVersion] The latest version on download center.
52+
* @member {date} [autoUpdateETA] The estimated time when the self-hosted
53+
* integration runtime will be updated.
5254
*/
5355
constructor() {
5456
super();
@@ -256,6 +258,14 @@ class SelfHostedIntegrationRuntimeStatus extends models['IntegrationRuntimeStatu
256258
type: {
257259
name: 'String'
258260
}
261+
},
262+
autoUpdateETA: {
263+
required: false,
264+
readOnly: true,
265+
serializedName: 'typeProperties.autoUpdateETA',
266+
type: {
267+
name: 'DateTime'
268+
}
259269
}
260270
}
261271
}

lib/services/datafactoryManagement/lib/operations/index.d.ts

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,102 @@ export interface IntegrationRuntimes {
18331833
removeLinks(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, linkedIntegrationRuntimeRequest: models.LinkedIntegrationRuntimeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
18341834

18351835

1836+
/**
1837+
* Create a linked integration runtime entry in a shared integration runtime.
1838+
*
1839+
* @param {string} resourceGroupName The resource group name.
1840+
*
1841+
* @param {string} factoryName The factory name.
1842+
*
1843+
* @param {string} integrationRuntimeName The integration runtime name.
1844+
*
1845+
* @param {object} createLinkedIntegrationRuntimeRequest The linked integration
1846+
* runtime properties.
1847+
*
1848+
* @param {string} [createLinkedIntegrationRuntimeRequest.name] The name of the
1849+
* linked integration runtime.
1850+
*
1851+
* @param {string} [createLinkedIntegrationRuntimeRequest.subscriptionId] The
1852+
* ID of the subscription that the linked integration runtime belongs to.
1853+
*
1854+
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryName] The
1855+
* name of the data factory that the linked integration runtime belongs to.
1856+
*
1857+
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryLocation]
1858+
* The location of the data factory that the linked integration runtime belongs
1859+
* to.
1860+
*
1861+
* @param {object} [options] Optional Parameters.
1862+
*
1863+
* @param {object} [options.customHeaders] Headers that will be added to the
1864+
* request
1865+
*
1866+
* @returns {Promise} A promise is returned
1867+
*
1868+
* @resolve {HttpOperationResponse<IntegrationRuntimeStatusResponse>} - The deserialized result object.
1869+
*
1870+
* @reject {Error|ServiceError} - The error object.
1871+
*/
1872+
createLinkedIntegrationRuntimeWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.IntegrationRuntimeStatusResponse>>;
1873+
1874+
/**
1875+
* Create a linked integration runtime entry in a shared integration runtime.
1876+
*
1877+
* @param {string} resourceGroupName The resource group name.
1878+
*
1879+
* @param {string} factoryName The factory name.
1880+
*
1881+
* @param {string} integrationRuntimeName The integration runtime name.
1882+
*
1883+
* @param {object} createLinkedIntegrationRuntimeRequest The linked integration
1884+
* runtime properties.
1885+
*
1886+
* @param {string} [createLinkedIntegrationRuntimeRequest.name] The name of the
1887+
* linked integration runtime.
1888+
*
1889+
* @param {string} [createLinkedIntegrationRuntimeRequest.subscriptionId] The
1890+
* ID of the subscription that the linked integration runtime belongs to.
1891+
*
1892+
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryName] The
1893+
* name of the data factory that the linked integration runtime belongs to.
1894+
*
1895+
* @param {string} [createLinkedIntegrationRuntimeRequest.dataFactoryLocation]
1896+
* The location of the data factory that the linked integration runtime belongs
1897+
* to.
1898+
*
1899+
* @param {object} [options] Optional Parameters.
1900+
*
1901+
* @param {object} [options.customHeaders] Headers that will be added to the
1902+
* request
1903+
*
1904+
* @param {ServiceCallback} [optionalCallback] - The optional callback.
1905+
*
1906+
* @returns {ServiceCallback|Promise} If a callback was passed as the last
1907+
* parameter then it returns the callback else returns a Promise.
1908+
*
1909+
* {Promise} A promise is returned.
1910+
*
1911+
* @resolve {IntegrationRuntimeStatusResponse} - The deserialized result object.
1912+
*
1913+
* @reject {Error|ServiceError} - The error object.
1914+
*
1915+
* {ServiceCallback} optionalCallback(err, result, request, response)
1916+
*
1917+
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
1918+
*
1919+
* {IntegrationRuntimeStatusResponse} [result] - The deserialized result object if an error did not occur.
1920+
* See {@link IntegrationRuntimeStatusResponse} for more
1921+
* information.
1922+
*
1923+
* {WebResource} [request] - The HTTP Request object if an error did not occur.
1924+
*
1925+
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
1926+
*/
1927+
createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.IntegrationRuntimeStatusResponse>;
1928+
createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, callback: ServiceCallback<models.IntegrationRuntimeStatusResponse>): void;
1929+
createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: models.CreateLinkedIntegrationRuntimeRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.IntegrationRuntimeStatusResponse>): void;
1930+
1931+
18361932
/**
18371933
* Starts a ManagedReserved type integration runtime.
18381934
*
@@ -2026,6 +2122,74 @@ export interface IntegrationRuntimes {
20262122
export interface IntegrationRuntimeNodes {
20272123

20282124

2125+
/**
2126+
* Gets a self-hosted integration runtime node.
2127+
*
2128+
* @param {string} resourceGroupName The resource group name.
2129+
*
2130+
* @param {string} factoryName The factory name.
2131+
*
2132+
* @param {string} integrationRuntimeName The integration runtime name.
2133+
*
2134+
* @param {string} nodeName The integration runtime node name.
2135+
*
2136+
* @param {object} [options] Optional Parameters.
2137+
*
2138+
* @param {object} [options.customHeaders] Headers that will be added to the
2139+
* request
2140+
*
2141+
* @returns {Promise} A promise is returned
2142+
*
2143+
* @resolve {HttpOperationResponse<SelfHostedIntegrationRuntimeNode>} - The deserialized result object.
2144+
*
2145+
* @reject {Error|ServiceError} - The error object.
2146+
*/
2147+
getWithHttpOperationResponse(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.SelfHostedIntegrationRuntimeNode>>;
2148+
2149+
/**
2150+
* Gets a self-hosted integration runtime node.
2151+
*
2152+
* @param {string} resourceGroupName The resource group name.
2153+
*
2154+
* @param {string} factoryName The factory name.
2155+
*
2156+
* @param {string} integrationRuntimeName The integration runtime name.
2157+
*
2158+
* @param {string} nodeName The integration runtime node name.
2159+
*
2160+
* @param {object} [options] Optional Parameters.
2161+
*
2162+
* @param {object} [options.customHeaders] Headers that will be added to the
2163+
* request
2164+
*
2165+
* @param {ServiceCallback} [optionalCallback] - The optional callback.
2166+
*
2167+
* @returns {ServiceCallback|Promise} If a callback was passed as the last
2168+
* parameter then it returns the callback else returns a Promise.
2169+
*
2170+
* {Promise} A promise is returned.
2171+
*
2172+
* @resolve {SelfHostedIntegrationRuntimeNode} - The deserialized result object.
2173+
*
2174+
* @reject {Error|ServiceError} - The error object.
2175+
*
2176+
* {ServiceCallback} optionalCallback(err, result, request, response)
2177+
*
2178+
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
2179+
*
2180+
* {SelfHostedIntegrationRuntimeNode} [result] - The deserialized result object if an error did not occur.
2181+
* See {@link SelfHostedIntegrationRuntimeNode} for more
2182+
* information.
2183+
*
2184+
* {WebResource} [request] - The HTTP Request object if an error did not occur.
2185+
*
2186+
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
2187+
*/
2188+
get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.SelfHostedIntegrationRuntimeNode>;
2189+
get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, callback: ServiceCallback<models.SelfHostedIntegrationRuntimeNode>): void;
2190+
get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, nodeName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.SelfHostedIntegrationRuntimeNode>): void;
2191+
2192+
20292193
/**
20302194
* Deletes a self-hosted integration runtime node.
20312195
*

0 commit comments

Comments
 (0)