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

[AutoPR automation/resource-manager] Module and activity data enrichment #3096

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
28 changes: 28 additions & 0 deletions lib/services/automationManagement/lib/models/activityParameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

'use strict';

const models = require('./index');

/**
* Definition of the activity parameter.
*
Expand Down Expand Up @@ -41,6 +43,10 @@ class ActivityParameter {
* remaining command-line arguments that are associated with this parameter
* in the form of an array. false if the cmdlet parameter does not accept all
* the remaining argument values.
* @member {string} [description] Gets or sets the description of the
* activity parameter.
* @member {array} [validationSet] Gets or sets the validation set of
* activity parameter.
*/
constructor() {
}
Expand Down Expand Up @@ -114,6 +120,28 @@ class ActivityParameter {
type: {
name: 'Boolean'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
validationSet: {
required: false,
serializedName: 'validationSet',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ActivityParameterValidationSetElementType',
type: {
name: 'Composite',
className: 'ActivityParameterValidationSet'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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 the activity parameter validation set.
*
*/
class ActivityParameterValidationSet {
/**
* Create a ActivityParameterValidationSet.
* @member {string} [memberValue] Gets or sets the name of the activity
* parameter validation set member.
*/
constructor() {
}

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

module.exports = ActivityParameterValidationSet;
22 changes: 22 additions & 0 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,19 @@ export interface LinkedWorkspace {
readonly id?: string;
}

/**
* @class
* Initializes a new instance of the ActivityParameterValidationSet class.
* @constructor
* Definition of the activity parameter validation set.
*
* @member {string} [memberValue] Gets or sets the name of the activity
* parameter validation set member.
*/
export interface ActivityParameterValidationSet {
memberValue?: string;
}

/**
* @class
* Initializes a new instance of the ActivityParameter class.
Expand Down Expand Up @@ -906,6 +919,10 @@ export interface LinkedWorkspace {
* command-line arguments that are associated with this parameter in the form
* of an array. false if the cmdlet parameter does not accept all the remaining
* argument values.
* @member {string} [description] Gets or sets the description of the activity
* parameter.
* @member {array} [validationSet] Gets or sets the validation set of activity
* parameter.
*/
export interface ActivityParameter {
name?: string;
Expand All @@ -916,6 +933,8 @@ export interface ActivityParameter {
valueFromPipeline?: boolean;
valueFromPipelineByPropertyName?: boolean;
valueFromRemainingArguments?: boolean;
description?: string;
validationSet?: ActivityParameterValidationSet[];
}

/**
Expand Down Expand Up @@ -1042,6 +1061,8 @@ export interface ContentLink {
* @member {date} [creationTime] Gets or sets the creation time.
* @member {date} [lastModifiedTime] Gets or sets the last modified time.
* @member {string} [description] Gets or sets the description.
* @member {boolean} [isComposite] Gets or sets type of module, if its
* composite or not.
* @member {string} [etag] Gets or sets the etag of the resource.
*/
export interface Module extends TrackedResource {
Expand All @@ -1055,6 +1076,7 @@ export interface Module extends TrackedResource {
creationTime?: Date;
lastModifiedTime?: Date;
description?: string;
isComposite?: boolean;
etag?: string;
}

Expand Down
1 change: 1 addition & 0 deletions lib/services/automationManagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ exports.RunbookAssociationProperty = require('./runbookAssociationProperty');
exports.JobSchedule = require('./jobSchedule');
exports.JobScheduleCreateParameters = require('./jobScheduleCreateParameters');
exports.LinkedWorkspace = require('./linkedWorkspace');
exports.ActivityParameterValidationSet = require('./activityParameterValidationSet');
exports.ActivityParameter = require('./activityParameter');
exports.ActivityParameterSet = require('./activityParameterSet');
exports.ActivityOutputType = require('./activityOutputType');
Expand Down
9 changes: 9 additions & 0 deletions lib/services/automationManagement/lib/models/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ class Module extends models['TrackedResource'] {
* @member {date} [creationTime] Gets or sets the creation time.
* @member {date} [lastModifiedTime] Gets or sets the last modified time.
* @member {string} [description] Gets or sets the description.
* @member {boolean} [isComposite] Gets or sets type of module, if its
* composite or not.
* @member {string} [etag] Gets or sets the etag of the resource.
*/
constructor() {
Expand Down Expand Up @@ -187,6 +189,13 @@ class Module extends models['TrackedResource'] {
name: 'String'
}
},
isComposite: {
required: false,
serializedName: 'properties.isComposite',
type: {
name: 'Boolean'
}
},
etag: {
required: false,
serializedName: 'etag',
Expand Down