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

[AutoPR datafactory/resource-manager] Adding refresh and get IntegrationRuntimeObjectMetadata API #4291

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default class DataFactoryManagementClient extends AzureServiceClient {
operations: operations.Operations;
factories: operations.Factories;
integrationRuntimes: operations.IntegrationRuntimes;
integrationRuntimeObjectMetadata: operations.IntegrationRuntimeObjectMetadata;
integrationRuntimeNodes: operations.IntegrationRuntimeNodes;
linkedServices: operations.LinkedServices;
datasets: operations.Datasets;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class DataFactoryManagementClient extends ServiceClient {
this.operations = new operations.Operations(this);
this.factories = new operations.Factories(this);
this.integrationRuntimes = new operations.IntegrationRuntimes(this);
this.integrationRuntimeObjectMetadata = new operations.IntegrationRuntimeObjectMetadata(this);
this.integrationRuntimeNodes = new operations.IntegrationRuntimeNodes(this);
this.linkedServices = new operations.LinkedServices(this);
this.datasets = new operations.Datasets(this);
Expand Down
59 changes: 56 additions & 3 deletions lib/services/datafactoryManagement/lib/models/deleteActivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,25 @@ const models = require('./index');
class DeleteActivity extends models['ExecutionActivity'] {
/**
* Create a DeleteActivity.
* @property {object} [recursive] If true, files under the folder path will
* be deleted recursively. Default is true. Type: boolean (or Expression with
* resultType boolean).
* @property {object} [recursive] If true, files or sub-folders under current
* folder path will be deleted recursively. Default is false. Type: boolean
* (or Expression with resultType boolean).
* @property {number} [maxConcurrentConnections] The max concurrent
* connections to connect data source at the same time.
* @property {object} [enableLogging] Whether to record detailed logs of
* delete-activity execution. Default value is false. Type: boolean (or
* Expression with resultType boolean).
* @property {object} [logStorageSettings] Log storage settings customer need
* to provide when enableLogging is true.
* @property {object} [logStorageSettings.linkedServiceName] Log storage
* linked service reference.
* @property {string} [logStorageSettings.linkedServiceName.referenceName]
* Reference LinkedService name.
* @property {object} [logStorageSettings.linkedServiceName.parameters]
* Arguments for LinkedService.
* @property {object} [logStorageSettings.path] The path to storage for
* storing detailed logs of activity execution. Type: string (or Expression
* with resultType string).
* @property {object} dataset Delete activity dataset reference.
* @property {string} [dataset.referenceName] Reference dataset name.
* @property {object} [dataset.parameters] Arguments for dataset.
Expand Down Expand Up @@ -149,6 +165,43 @@ class DeleteActivity extends models['ExecutionActivity'] {
name: 'Object'
}
},
maxConcurrentConnections: {
required: false,
serializedName: 'typeProperties.maxConcurrentConnections',
constraints: {
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
},
enableLogging: {
required: false,
serializedName: 'typeProperties.enableLogging',
type: {
name: 'Object'
}
},
logStorageSettings: {
required: false,
serializedName: 'typeProperties.logStorageSettings',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'LogStorageSettings'
}
},
dataset: {
required: true,
serializedName: 'typeProperties.dataset',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* 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 request payload of get SSIS object metadata.
*
*/
class GetSsisObjectMetadataRequest {
/**
* Create a GetSsisObjectMetadataRequest.
* @property {string} [metadataPath] Metadata path.
*/
constructor() {
}

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

module.exports = GetSsisObjectMetadataRequest;
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] {
* LinkedService.
* @property {object} [defines] Allows user to specify defines for Hive job
* request.
* @property {array} [variables] User specified arguments under hivevar
* namespace.
* @property {number} [queryTimeout] Query timeout value (in minutes).
* Effective when the HDInsight culster is with ESP (Enterprise Security
* Package)
*/
constructor() {
super();
Expand Down Expand Up @@ -215,6 +220,27 @@ class HDInsightHiveActivity extends models['ExecutionActivity'] {
}
}
}
},
variables: {
required: false,
serializedName: 'typeProperties.variables',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
queryTimeout: {
required: false,
serializedName: 'typeProperties.queryTimeout',
type: {
name: 'Number'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class HDInsightLinkedService extends models['LinkedService'] {
* @property {object} [encryptedCredential] The encrypted credential used for
* authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string (or Expression with resultType string).
* @property {object} [isEspEnabled] Specify if the HDInsight is created with
* ESP (Enterprise Security Package). Type: Boolean.
*/
constructor() {
super();
Expand Down Expand Up @@ -166,6 +168,13 @@ class HDInsightLinkedService extends models['LinkedService'] {
type: {
name: 'Object'
}
},
isEspEnabled: {
required: false,
serializedName: 'typeProperties.isEspEnabled',
type: {
name: 'Object'
}
}
}
}
Expand Down
117 changes: 115 additions & 2 deletions lib/services/datafactoryManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,38 @@ export interface Operation {
serviceSpecification?: OperationServiceSpecification;
}

/**
* The request payload of get SSIS object metadata.
*/
export interface GetSsisObjectMetadataRequest {
/**
* Metadata path.
*/
metadataPath?: string;
}

/**
* The status of the operation.
*/
export interface SsisObjectMetadataStatusResponse {
/**
* The status of the operation.
*/
status?: string;
/**
* The operation name.
*/
name?: string;
/**
* The operation properties.
*/
properties?: string;
/**
* The operation error message.
*/
error?: string;
}

/**
* Referenced dependency.
*/
Expand Down Expand Up @@ -4020,6 +4052,10 @@ export interface HDInsightLinkedService extends LinkedService {
* integration runtime credential manager. Type: string (or Expression with resultType string).
*/
encryptedCredential?: any;
/**
* Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean.
*/
isEspEnabled?: any;
}

/**
Expand Down Expand Up @@ -6102,15 +6138,47 @@ export interface LookupActivity extends ExecutionActivity {
firstRowOnly?: any;
}

/**
* Log storage settings.
*/
export interface LogStorageSettings {
/**
* Log storage linked service reference.
*/
linkedServiceName: LinkedServiceReference;
/**
* The path to storage for storing detailed logs of activity execution. Type: string (or
* Expression with resultType string).
*/
path?: any;
/**
* Describes unknown properties. The value of an unknown property can be of "any" type.
*/
[additionalPropertyName: string]: any;
}

/**
* Delete activity.
*/
export interface DeleteActivity extends ExecutionActivity {
/**
* If true, files under the folder path will be deleted recursively. Default is true. Type:
* boolean (or Expression with resultType boolean).
* If true, files or sub-folders under current folder path will be deleted recursively. Default
* is false. Type: boolean (or Expression with resultType boolean).
*/
recursive?: any;
/**
* The max concurrent connections to connect data source at the same time.
*/
maxConcurrentConnections?: number;
/**
* Whether to record detailed logs of delete-activity execution. Default value is false. Type:
* boolean (or Expression with resultType boolean).
*/
enableLogging?: any;
/**
* Log storage settings customer need to provide when enableLogging is true.
*/
logStorageSettings?: LogStorageSettings;
/**
* Delete activity dataset reference.
*/
Expand Down Expand Up @@ -6447,6 +6515,15 @@ export interface HDInsightHiveActivity extends ExecutionActivity {
* Allows user to specify defines for Hive job request.
*/
defines?: { [propertyName: string]: any };
/**
* User specified arguments under hivevar namespace.
*/
variables?: any[];
/**
* Query timeout value (in minutes). Effective when the HDInsight culster is with ESP
* (Enterprise Security Package)
*/
queryTimeout?: number;
}

/**
Expand Down Expand Up @@ -7469,6 +7546,42 @@ export interface IntegrationRuntimeNodeIpAddress {
readonly ipAddress?: string;
}

/**
* SSIS object metadata.
*/
export interface SsisObjectMetadata {
/**
* Metadata id.
*/
id?: number;
/**
* Metadata name.
*/
name?: string;
/**
* Metadata description.
*/
description?: string;
/**
* Polymorphic Discriminator
*/
type: string;
}

/**
* A list of SSIS object metadata.
*/
export interface SsisObjectMetadataListResponse {
/**
* List of SSIS object metadata.
*/
value?: SsisObjectMetadata[];
/**
* The link to the next page of results, if any remaining results exist.
*/
nextLink?: string;
}

/**
* Monitoring data for integration runtime node.
*/
Expand Down
8 changes: 7 additions & 1 deletion lib/services/datafactoryManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ exports.OperationMetricDimension = require('./operationMetricDimension');
exports.OperationMetricSpecification = require('./operationMetricSpecification');
exports.OperationServiceSpecification = require('./operationServiceSpecification');
exports.Operation = require('./operation');
exports.GetSsisObjectMetadataRequest = require('./getSsisObjectMetadataRequest');
exports.SsisObjectMetadataStatusResponse = require('./ssisObjectMetadataStatusResponse');
exports.DependencyReference = require('./dependencyReference');
exports.SelfDependencyTumblingWindowTriggerReference = require('./selfDependencyTumblingWindowTriggerReference');
exports.TriggerReference = require('./triggerReference');
Expand Down Expand Up @@ -306,6 +308,7 @@ exports.DocumentDbCollectionSource = require('./documentDbCollectionSource');
exports.BlobSource = require('./blobSource');
exports.AzureTableSource = require('./azureTableSource');
exports.LookupActivity = require('./lookupActivity');
exports.LogStorageSettings = require('./logStorageSettings');
exports.DeleteActivity = require('./deleteActivity');
exports.SqlServerStoredProcedureActivity = require('./sqlServerStoredProcedureActivity');
exports.CustomActivityReferenceObject = require('./customActivityReferenceObject');
Expand Down Expand Up @@ -367,6 +370,8 @@ exports.IntegrationRuntimeVNetProperties = require('./integrationRuntimeVNetProp
exports.IntegrationRuntimeComputeProperties = require('./integrationRuntimeComputeProperties');
exports.ManagedIntegrationRuntime = require('./managedIntegrationRuntime');
exports.IntegrationRuntimeNodeIpAddress = require('./integrationRuntimeNodeIpAddress');
exports.SsisObjectMetadata = require('./ssisObjectMetadata');
exports.SsisObjectMetadataListResponse = require('./ssisObjectMetadataListResponse');
exports.IntegrationRuntimeNodeMonitoringData = require('./integrationRuntimeNodeMonitoringData');
exports.IntegrationRuntimeMonitoringData = require('./integrationRuntimeMonitoringData');
exports.IntegrationRuntimeAuthKeys = require('./integrationRuntimeAuthKeys');
Expand Down Expand Up @@ -646,5 +651,6 @@ exports.discriminators = {
'LinkedIntegrationRuntimeType.Key' : exports.LinkedIntegrationRuntimeKeyAuthorization,
'LinkedIntegrationRuntimeType' : exports.LinkedIntegrationRuntimeType,
'IntegrationRuntime.SelfHosted' : exports.SelfHostedIntegrationRuntime,
'IntegrationRuntime.Managed' : exports.ManagedIntegrationRuntime
'IntegrationRuntime.Managed' : exports.ManagedIntegrationRuntime,
'SsisObjectMetadata' : exports.SsisObjectMetadata
};
Loading