UNPKG

azure-arm-timeseriesinsights

Version:
69 lines (64 loc) 1.77 kB
/* * 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'; /** * Class representing a AccessPolicyUpdateParameters. */ class AccessPolicyUpdateParameters { /** * Create a AccessPolicyUpdateParameters. * @member {string} [description] An description of the access policy. * @member {array} [roles] The list of roles the principal is assigned on the * environment. */ constructor() { } /** * Defines the metadata of AccessPolicyUpdateParameters * * @returns {object} metadata of AccessPolicyUpdateParameters * */ mapper() { return { required: false, serializedName: 'AccessPolicyUpdateParameters', type: { name: 'Composite', className: 'AccessPolicyUpdateParameters', modelProperties: { description: { required: false, serializedName: 'properties.description', type: { name: 'String' } }, roles: { required: false, serializedName: 'properties.roles', type: { name: 'Sequence', element: { required: false, serializedName: 'AccessPolicyRoleElementType', type: { name: 'Enum', allowedValues: [ 'Reader', 'Contributor' ] } } } } } } }; } } module.exports = AccessPolicyUpdateParameters;