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 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
@@ -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;
49 changes: 49 additions & 0 deletions lib/services/datafactoryManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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;
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions lib/services/datafactoryManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions lib/services/datafactoryManagement/lib/models/pipelineResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
Loading