diff --git a/lib/services/datafactoryManagement/lib/models/appendVariableActivity.js b/lib/services/datafactoryManagement/lib/models/appendVariableActivity.js new file mode 100644 index 0000000000..44284ba3a0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/appendVariableActivity.js @@ -0,0 +1,135 @@ +/* + * 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'; + +const models = require('./index'); + +/** + * Append value for a Variable of type Array. + * + * @extends models['ControlActivity'] + */ +class AppendVariableActivity extends models['ControlActivity'] { + /** + * Create a AppendVariableActivity. + * @member {string} [variableName] Name of the variable whose value needs to + * be appended to. + * @member {object} [value] Value to be appended. Could be a static value or + * Expression + */ + constructor() { + super(); + } + + /** + * Defines the metadata of AppendVariableActivity + * + * @returns {object} metadata of AppendVariableActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'AppendVariable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'AppendVariableActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + userProperties: { + required: false, + serializedName: 'userProperties', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'UserPropertyElementType', + type: { + name: 'Composite', + className: 'UserProperty' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + variableName: { + required: false, + serializedName: 'typeProperties.variableName', + type: { + name: 'String' + } + }, + value: { + required: false, + serializedName: 'typeProperties.value', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = AppendVariableActivity; diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 15ef84093f..a89f24a04f 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -582,6 +582,21 @@ export interface Activity { [property: string]: any; } +/** + * @class + * Initializes a new instance of the VariableSpecification class. + * @constructor + * Definition of a single variable for a Pipeline. + * + * @member {string} type Variable type. Possible values include: 'String', + * 'Bool', 'Array' + * @member {object} [defaultValue] Default value of variable. + */ +export interface VariableSpecification { + type: string; + defaultValue?: any; +} + /** * @class * Initializes a new instance of the PipelineFolder class. @@ -604,6 +619,7 @@ export interface PipelineFolder { * @member {string} [description] The description of the pipeline. * @member {array} [activities] List of activities in pipeline. * @member {object} [parameters] List of parameters for pipeline. + * @member {object} [variables] List of variables for pipeline. * @member {number} [concurrency] The max number of concurrent runs for the * pipeline. * @member {array} [annotations] List of tags that can be used for describing @@ -617,6 +633,7 @@ export interface PipelineResource extends SubResource { description?: string; activities?: Activity[]; parameters?: { [propertyName: string]: ParameterSpecification }; + variables?: { [propertyName: string]: VariableSpecification }; concurrency?: number; annotations?: any[]; folder?: PipelineFolder; @@ -6823,6 +6840,38 @@ export interface CopyActivity extends ExecutionActivity { export interface ControlActivity extends Activity { } +/** + * @class + * Initializes a new instance of the AppendVariableActivity class. + * @constructor + * Append value for a Variable of type Array. + * + * @member {string} [variableName] Name of the variable whose value needs to be + * appended to. + * @member {object} [value] Value to be appended. Could be a static value or + * Expression + */ +export interface AppendVariableActivity extends ControlActivity { + variableName?: string; + value?: any; +} + +/** + * @class + * Initializes a new instance of the SetVariableActivity class. + * @constructor + * Set value for a Variable. + * + * @member {string} [variableName] Name of the variable whose value needs to be + * set. + * @member {object} [value] Value to be set. Could be a static value or + * Expression + */ +export interface SetVariableActivity extends ControlActivity { + variableName?: string; + value?: any; +} + /** * @class * Initializes a new instance of the FilterActivity class. diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index b8d3323172..fe8426eb03 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -47,6 +47,7 @@ exports.DatasetResource = require('./datasetResource'); exports.ActivityDependency = require('./activityDependency'); exports.UserProperty = require('./userProperty'); exports.Activity = require('./activity'); +exports.VariableSpecification = require('./variableSpecification'); exports.PipelineFolder = require('./pipelineFolder'); exports.PipelineResource = require('./pipelineResource'); exports.Trigger = require('./trigger'); @@ -334,6 +335,8 @@ exports.AzureQueueSink = require('./azureQueueSink'); exports.SapCloudForCustomerSink = require('./sapCloudForCustomerSink'); exports.CopyActivity = require('./copyActivity'); exports.ControlActivity = require('./controlActivity'); +exports.AppendVariableActivity = require('./appendVariableActivity'); +exports.SetVariableActivity = require('./setVariableActivity'); exports.FilterActivity = require('./filterActivity'); exports.UntilActivity = require('./untilActivity'); exports.WaitActivity = require('./waitActivity'); @@ -619,6 +622,8 @@ exports.discriminators = { 'CopySink' : exports.CopySink, 'Activity.Copy' : exports.CopyActivity, 'Activity.Execution' : exports.ExecutionActivity, + 'Activity.AppendVariable' : exports.AppendVariableActivity, + 'Activity.SetVariable' : exports.SetVariableActivity, 'Activity.Filter' : exports.FilterActivity, 'Activity.Until' : exports.UntilActivity, 'Activity.Wait' : exports.WaitActivity, diff --git a/lib/services/datafactoryManagement/lib/models/pipelineResource.js b/lib/services/datafactoryManagement/lib/models/pipelineResource.js index 71b6006e08..2dcfd3b1af 100644 --- a/lib/services/datafactoryManagement/lib/models/pipelineResource.js +++ b/lib/services/datafactoryManagement/lib/models/pipelineResource.js @@ -23,6 +23,7 @@ class PipelineResource extends models['SubResource'] { * @member {string} [description] The description of the pipeline. * @member {array} [activities] List of activities in pipeline. * @member {object} [parameters] List of parameters for pipeline. + * @member {object} [variables] List of variables for pipeline. * @member {number} [concurrency] The max number of concurrent runs for the * pipeline. * @member {array} [annotations] List of tags that can be used for describing @@ -148,6 +149,21 @@ class PipelineResource extends models['SubResource'] { } } }, + variables: { + required: false, + serializedName: 'properties.variables', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'VariableSpecificationElementType', + type: { + name: 'Composite', + className: 'VariableSpecification' + } + } + } + }, concurrency: { required: false, serializedName: 'properties.concurrency', diff --git a/lib/services/datafactoryManagement/lib/models/setVariableActivity.js b/lib/services/datafactoryManagement/lib/models/setVariableActivity.js new file mode 100644 index 0000000000..cd4a98ca71 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/setVariableActivity.js @@ -0,0 +1,135 @@ +/* + * 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'; + +const models = require('./index'); + +/** + * Set value for a Variable. + * + * @extends models['ControlActivity'] + */ +class SetVariableActivity extends models['ControlActivity'] { + /** + * Create a SetVariableActivity. + * @member {string} [variableName] Name of the variable whose value needs to + * be set. + * @member {object} [value] Value to be set. Could be a static value or + * Expression + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SetVariableActivity + * + * @returns {object} metadata of SetVariableActivity + * + */ + mapper() { + return { + required: false, + serializedName: 'SetVariable', + type: { + name: 'Composite', + polymorphicDiscriminator: { + serializedName: 'type', + clientName: 'type' + }, + uberParent: 'Activity', + className: 'SetVariableActivity', + modelProperties: { + name: { + required: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + description: { + required: false, + serializedName: 'description', + type: { + name: 'String' + } + }, + dependsOn: { + required: false, + serializedName: 'dependsOn', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ActivityDependencyElementType', + type: { + name: 'Composite', + additionalProperties: { + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Object' + } + } + } + }, + className: 'ActivityDependency' + } + } + } + }, + userProperties: { + required: false, + serializedName: 'userProperties', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'UserPropertyElementType', + type: { + name: 'Composite', + className: 'UserProperty' + } + } + } + }, + type: { + required: true, + serializedName: 'type', + isPolymorphicDiscriminator: true, + type: { + name: 'String' + } + }, + variableName: { + required: false, + serializedName: 'typeProperties.variableName', + type: { + name: 'String' + } + }, + value: { + required: false, + serializedName: 'typeProperties.value', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SetVariableActivity; diff --git a/lib/services/datafactoryManagement/lib/models/variableSpecification.js b/lib/services/datafactoryManagement/lib/models/variableSpecification.js new file mode 100644 index 0000000000..6916456ad9 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/variableSpecification.js @@ -0,0 +1,61 @@ +/* + * 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'; + +/** + * Definition of a single variable for a Pipeline. + * + */ +class VariableSpecification { + /** + * Create a VariableSpecification. + * @member {string} type Variable type. Possible values include: 'String', + * 'Bool', 'Array' + * @member {object} [defaultValue] Default value of variable. + */ + constructor() { + } + + /** + * Defines the metadata of VariableSpecification + * + * @returns {object} metadata of VariableSpecification + * + */ + mapper() { + return { + required: false, + serializedName: 'VariableSpecification', + type: { + name: 'Composite', + className: 'VariableSpecification', + modelProperties: { + type: { + required: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + defaultValue: { + required: false, + serializedName: 'defaultValue', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = VariableSpecification; diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index 0502725a76..f2140a2c84 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -3350,6 +3350,9 @@ export interface Pipelines { * @param {object} [pipelineParameter.parameters] List of parameters for * pipeline. * + * @param {object} [pipelineParameter.variables] List of variables for + * pipeline. + * * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * @@ -3399,6 +3402,9 @@ export interface Pipelines { * @param {object} [pipelineParameter.parameters] List of parameters for * pipeline. * + * @param {object} [pipelineParameter.variables] List of variables for + * pipeline. + * * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * diff --git a/lib/services/datafactoryManagement/lib/operations/pipelines.js b/lib/services/datafactoryManagement/lib/operations/pipelines.js index d118605a2a..198e266bde 100644 --- a/lib/services/datafactoryManagement/lib/operations/pipelines.js +++ b/lib/services/datafactoryManagement/lib/operations/pipelines.js @@ -207,6 +207,9 @@ function _listByFactory(resourceGroupName, factoryName, options, callback) { * @param {object} [pipelineParameter.parameters] List of parameters for * pipeline. * + * @param {object} [pipelineParameter.variables] List of variables for + * pipeline. + * * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * @@ -1301,6 +1304,9 @@ class Pipelines { * @param {object} [pipelineParameter.parameters] List of parameters for * pipeline. * + * @param {object} [pipelineParameter.variables] List of variables for + * pipeline. + * * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. * @@ -1362,6 +1368,9 @@ class Pipelines { * @param {object} [pipelineParameter.parameters] List of parameters for * pipeline. * + * @param {object} [pipelineParameter.variables] List of variables for + * pipeline. + * * @param {number} [pipelineParameter.concurrency] The max number of concurrent * runs for the pipeline. *