UNPKG

azure-cli

Version:

Microsoft Azure Cross Platform Command Line tool

63 lines (58 loc) 1.41 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'; /** * Data used for requesting a SAS. * */ class GrantAccessData { /** * Create a GrantAccessData. * @member {string} access Possible values include: 'None', 'Read' * @member {number} durationInSeconds Time duration in seconds until the SAS * access expires. */ constructor() { } /** * Defines the metadata of GrantAccessData * * @returns {object} metadata of GrantAccessData * */ mapper() { return { required: false, serializedName: 'GrantAccessData', type: { name: 'Composite', className: 'GrantAccessData', modelProperties: { access: { required: true, serializedName: 'access', type: { name: 'Enum', allowedValues: [ 'None', 'Read' ] } }, durationInSeconds: { required: true, serializedName: 'durationInSeconds', type: { name: 'Number' } } } } }; } } module.exports = GrantAccessData;