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,129 @@
/*
* 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');

/**
* The parameters supplied to the create or update configuration operation.
*
*/
class DscConfigurationUpdateParameters {
/**
* Create a DscConfigurationUpdateParameters.
* @member {boolean} [logVerbose] Gets or sets verbose log option.
* @member {boolean} [logProgress] Gets or sets progress log option.
* @member {object} source Gets or sets the source.
* @member {object} [source.hash] Gets or sets the hash.
* @member {string} [source.hash.algorithm] Gets or sets the content hash
* algorithm used to hash the content.
* @member {string} [source.hash.value] Gets or sets expected hash value of
* the content.
* @member {string} [source.type] Gets or sets the content source type.
* Possible values include: 'embeddedContent', 'uri'
* @member {string} [source.value] Gets or sets the value of the content.
* This is based on the content source type.
* @member {string} [source.version] Gets or sets the version of the content.
* @member {object} [parameters] Gets or sets the configuration parameters.
* @member {string} [description] Gets or sets the description of the
* configuration.
* @member {string} [name] Gets or sets name of the resource.
* @member {object} [tags] Gets or sets the tags attached to the resource.
*/
constructor() {
}

/**
* Defines the metadata of DscConfigurationUpdateParameters
*
* @returns {object} metadata of DscConfigurationUpdateParameters
*
*/
mapper() {
return {
required: false,
serializedName: 'DscConfigurationUpdateParameters',
type: {
name: 'Composite',
className: 'DscConfigurationUpdateParameters',
modelProperties: {
logVerbose: {
required: false,
serializedName: 'properties.logVerbose',
type: {
name: 'Boolean'
}
},
logProgress: {
required: false,
serializedName: 'properties.logProgress',
type: {
name: 'Boolean'
}
},
source: {
required: true,
serializedName: 'properties.source',
type: {
name: 'Composite',
className: 'ContentSource'
}
},
parameters: {
required: false,
serializedName: 'properties.parameters',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'DscConfigurationParameterElementType',
type: {
name: 'Composite',
className: 'DscConfigurationParameter'
}
}
}
},
description: {
required: false,
serializedName: 'properties.description',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = DscConfigurationUpdateParameters;
35 changes: 35 additions & 0 deletions lib/services/automationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,41 @@ export interface DscConfigurationCreateOrUpdateParameters {
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the DscConfigurationUpdateParameters class.
* @constructor
* The parameters supplied to the create or update configuration operation.
*
* @member {boolean} [logVerbose] Gets or sets verbose log option.
* @member {boolean} [logProgress] Gets or sets progress log option.
* @member {object} source Gets or sets the source.
* @member {object} [source.hash] Gets or sets the hash.
* @member {string} [source.hash.algorithm] Gets or sets the content hash
* algorithm used to hash the content.
* @member {string} [source.hash.value] Gets or sets expected hash value of the
* content.
* @member {string} [source.type] Gets or sets the content source type.
* Possible values include: 'embeddedContent', 'uri'
* @member {string} [source.value] Gets or sets the value of the content. This
* is based on the content source type.
* @member {string} [source.version] Gets or sets the version of the content.
* @member {object} [parameters] Gets or sets the configuration parameters.
* @member {string} [description] Gets or sets the description of the
* configuration.
* @member {string} [name] Gets or sets name of the resource.
* @member {object} [tags] Gets or sets the tags attached to the resource.
*/
export interface DscConfigurationUpdateParameters {
logVerbose?: boolean;
logProgress?: boolean;
source: ContentSource;
parameters?: { [propertyName: string]: DscConfigurationParameter };
description?: string;
name?: string;
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the DscMetaConfiguration class.
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 @@ -67,6 +67,7 @@ exports.JobProvisioningStateProperty = require('./jobProvisioningStateProperty')
exports.ProxyResource = require('./proxyResource');
exports.DscCompilationJob = require('./dscCompilationJob');
exports.DscConfigurationCreateOrUpdateParameters = require('./dscConfigurationCreateOrUpdateParameters');
exports.DscConfigurationUpdateParameters = require('./dscConfigurationUpdateParameters');
exports.DscMetaConfiguration = require('./dscMetaConfiguration');
exports.DscNodeConfigurationCreateOrUpdateParameters = require('./dscNodeConfigurationCreateOrUpdateParameters');
exports.DscNodeConfigurationAssociationProperty = require('./dscNodeConfigurationAssociationProperty');
Expand Down
Loading