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

Commit

Permalink
Generated from 925983c22f5abe481e6168c9811e20e8cc44ec5c (#2915)
Browse files Browse the repository at this point in the history
[Storage] modify as review comments
  • Loading branch information
AutorestCI authored May 28, 2018
1 parent 222d03c commit f0824e2
Show file tree
Hide file tree
Showing 10 changed files with 1,800 additions and 6 deletions.
33 changes: 33 additions & 0 deletions lib/services/storageManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,39 @@ export interface ListServiceSasResponse {
readonly serviceSasToken?: string;
}

/**
* @class
* Initializes a new instance of the StorageAccountManagementPolicies class.
* @constructor
* The Get Storage Account ManagementPolicies operation response.
*
* @member {object} [policy] The Storage Account ManagementPolicies Rules, in
* JSON format. See more details in:
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
* @member {date} [lastModifiedTime] Returns the date and time the
* ManagementPolicies was last modified.
*/
export interface StorageAccountManagementPolicies extends Resource {
policy?: any;
readonly lastModifiedTime?: Date;
}

/**
* @class
* Initializes a new instance of the ManagementPoliciesRulesSetParameter class.
* @constructor
* The Storage Account ManagementPolicies Rules, in JSON format. See more
* details in:
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
*
* @member {object} [policy] The Storage Account ManagementPolicies Rules, in
* JSON format. See more details in:
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
*/
export interface ManagementPoliciesRulesSetParameter {
policy?: any;
}

/**
* @class
* Initializes a new instance of the ProxyResource class.
Expand Down
2 changes: 2 additions & 0 deletions lib/services/storageManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ exports.AccountSasParameters = require('./accountSasParameters');
exports.ListAccountSasResponse = require('./listAccountSasResponse');
exports.ServiceSasParameters = require('./serviceSasParameters');
exports.ListServiceSasResponse = require('./listServiceSasResponse');
exports.StorageAccountManagementPolicies = require('./storageAccountManagementPolicies');
exports.ManagementPoliciesRulesSetParameter = require('./managementPoliciesRulesSetParameter');
exports.ProxyResource = require('./proxyResource');
exports.AzureEntityResource = require('./azureEntityResource');
exports.UpdateHistoryProperty = require('./updateHistoryProperty');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* 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';

/**
* The Storage Account ManagementPolicies Rules, in JSON format. See more
* details in:
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
*
*/
class ManagementPoliciesRulesSetParameter {
/**
* Create a ManagementPoliciesRulesSetParameter.
* @member {object} [policy] The Storage Account ManagementPolicies Rules, in
* JSON format. See more details in:
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
*/
constructor() {
}

/**
* Defines the metadata of ManagementPoliciesRulesSetParameter
*
* @returns {object} metadata of ManagementPoliciesRulesSetParameter
*
*/
mapper() {
return {
required: false,
serializedName: 'ManagementPoliciesRulesSetParameter',
type: {
name: 'Composite',
className: 'ManagementPoliciesRulesSetParameter',
modelProperties: {
policy: {
required: false,
serializedName: 'properties.policy',
type: {
name: 'Object'
}
}
}
}
};
}
}

module.exports = ManagementPoliciesRulesSetParameter;
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* 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 Get Storage Account ManagementPolicies operation response.
*
* @extends models['Resource']
*/
class StorageAccountManagementPolicies extends models['Resource'] {
/**
* Create a StorageAccountManagementPolicies.
* @member {object} [policy] The Storage Account ManagementPolicies Rules, in
* JSON format. See more details in:
* https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
* @member {date} [lastModifiedTime] Returns the date and time the
* ManagementPolicies was last modified.
*/
constructor() {
super();
}

/**
* Defines the metadata of StorageAccountManagementPolicies
*
* @returns {object} metadata of StorageAccountManagementPolicies
*
*/
mapper() {
return {
required: false,
serializedName: 'StorageAccountManagementPolicies',
type: {
name: 'Composite',
className: 'StorageAccountManagementPolicies',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
policy: {
required: false,
serializedName: 'properties.policy',
type: {
name: 'Object'
}
},
lastModifiedTime: {
required: false,
readOnly: true,
serializedName: 'properties.lastModifiedTime',
type: {
name: 'DateTime'
}
}
}
}
};
}
}

module.exports = StorageAccountManagementPolicies;
Loading

0 comments on commit f0824e2

Please sign in to comment.