This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 925983c22f5abe481e6168c9811e20e8cc44ec5c (#2915)
[Storage] modify as review comments
- Loading branch information
1 parent
222d03c
commit f0824e2
Showing
10 changed files
with
1,800 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
lib/services/storageManagement2/lib/models/managementPoliciesRulesSetParameter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
92 changes: 92 additions & 0 deletions
92
lib/services/storageManagement2/lib/models/storageAccountManagementPolicies.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.