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 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2854 from Azure/daschult/storageManagement
Regenerate storage management SDK from latest swagger
- Loading branch information
Showing
46 changed files
with
8,052 additions
and
253 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
lib/services/storageManagement2/lib/models/azureEntityResource.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,82 @@ | ||
/* | ||
* 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 resource model definition for a Azure Resource Manager resource with an | ||
* etag. | ||
* | ||
* @extends models['Resource'] | ||
*/ | ||
class AzureEntityResource extends models['Resource'] { | ||
/** | ||
* Create a AzureEntityResource. | ||
* @member {string} [etag] Resource Etag. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of AzureEntityResource | ||
* | ||
* @returns {object} metadata of AzureEntityResource | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'AzureEntityResource', | ||
type: { | ||
name: 'Composite', | ||
className: 'AzureEntityResource', | ||
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' | ||
} | ||
}, | ||
etag: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'etag', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AzureEntityResource; |
212 changes: 212 additions & 0 deletions
212
lib/services/storageManagement2/lib/models/blobContainer.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,212 @@ | ||
/* | ||
* 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'); | ||
|
||
/** | ||
* Properties of the blob container, including Id, resource name, resource | ||
* type, Etag. | ||
* | ||
* @extends models['AzureEntityResource'] | ||
*/ | ||
class BlobContainer extends models['AzureEntityResource'] { | ||
/** | ||
* Create a BlobContainer. | ||
* @member {string} [publicAccess] Specifies whether data in the container | ||
* may be accessed publicly and the level of access. Possible values include: | ||
* 'Container', 'Blob', 'None' | ||
* @member {date} [lastModifiedTime] Returns the date and time the container | ||
* was last modified. | ||
* @member {string} [leaseStatus] The lease status of the container. Possible | ||
* values include: 'Locked', 'Unlocked' | ||
* @member {string} [leaseState] Lease state of the container. Possible | ||
* values include: 'Available', 'Leased', 'Expired', 'Breaking', 'Broken' | ||
* @member {string} [leaseDuration] Specifies whether the lease on a | ||
* container is of infinite or fixed duration, only when the container is | ||
* leased. Possible values include: 'Infinite', 'Fixed' | ||
* @member {object} [metadata] A name-value pair to associate with the | ||
* container as metadata. | ||
* @member {object} [immutabilityPolicy] The ImmutabilityPolicy property of | ||
* the container. | ||
* @member {number} | ||
* [immutabilityPolicy.immutabilityPeriodSinceCreationInDays] The | ||
* immutability period for the blobs in the container since the policy | ||
* creation, in days. | ||
* @member {string} [immutabilityPolicy.state] The ImmutabilityPolicy state | ||
* of a blob container, possible values include: Locked and Unlocked. | ||
* Possible values include: 'Locked', 'Unlocked' | ||
* @member {string} [immutabilityPolicy.etag] ImmutabilityPolicy Etag. | ||
* @member {array} [immutabilityPolicy.updateHistory] The ImmutabilityPolicy | ||
* update history of the blob container. | ||
* @member {object} [legalHold] The LegalHold property of the container. | ||
* @member {boolean} [legalHold.hasLegalHold] The hasLegalHold public | ||
* property is set to true by SRP if there are at least one existing tag. The | ||
* hasLegalHold public property is set to false by SRP if all existing legal | ||
* hold tags are cleared out. There can be a maximum of 1000 blob containers | ||
* with hasLegalHold=true for a given account. | ||
* @member {array} [legalHold.tags] The list of LegalHold tags of a blob | ||
* container. | ||
* @member {boolean} [hasLegalHold] The hasLegalHold public property is set | ||
* to true by SRP if there are at least one existing tag. The hasLegalHold | ||
* public property is set to false by SRP if all existing legal hold tags are | ||
* cleared out. There can be a maximum of 1000 blob containers with | ||
* hasLegalHold=true for a given account. | ||
* @member {boolean} [hasImmutabilityPolicy] The hasImmutabilityPolicy public | ||
* property is set to true by SRP if ImmutabilityPolicy has been created for | ||
* this container. The hasImmutabilityPolicy public property is set to false | ||
* by SRP if ImmutabilityPolicy has not been created for this container. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of BlobContainer | ||
* | ||
* @returns {object} metadata of BlobContainer | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'BlobContainer', | ||
type: { | ||
name: 'Composite', | ||
className: 'BlobContainer', | ||
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' | ||
} | ||
}, | ||
etag: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'etag', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
publicAccess: { | ||
required: false, | ||
serializedName: 'properties.publicAccess', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'Container', 'Blob', 'None' ] | ||
} | ||
}, | ||
lastModifiedTime: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.lastModifiedTime', | ||
type: { | ||
name: 'DateTime' | ||
} | ||
}, | ||
leaseStatus: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.leaseStatus', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
leaseState: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.leaseState', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
leaseDuration: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.leaseDuration', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
metadata: { | ||
required: false, | ||
serializedName: 'properties.metadata', | ||
type: { | ||
name: 'Dictionary', | ||
value: { | ||
required: false, | ||
serializedName: 'StringElementType', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
}, | ||
immutabilityPolicy: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.immutabilityPolicy', | ||
type: { | ||
name: 'Composite', | ||
className: 'ImmutabilityPolicyProperties' | ||
} | ||
}, | ||
legalHold: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.legalHold', | ||
type: { | ||
name: 'Composite', | ||
className: 'LegalHoldProperties' | ||
} | ||
}, | ||
hasLegalHold: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.hasLegalHold', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
}, | ||
hasImmutabilityPolicy: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.hasImmutabilityPolicy', | ||
type: { | ||
name: 'Boolean' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = BlobContainer; |
101 changes: 101 additions & 0 deletions
101
lib/services/storageManagement2/lib/models/immutabilityPolicy.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,101 @@ | ||
/* | ||
* 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 ImmutabilityPolicy property of a blob container, including Id, resource | ||
* name, resource type, Etag. | ||
* | ||
* @extends models['AzureEntityResource'] | ||
*/ | ||
class ImmutabilityPolicy extends models['AzureEntityResource'] { | ||
/** | ||
* Create a ImmutabilityPolicy. | ||
* @member {number} immutabilityPeriodSinceCreationInDays The immutability | ||
* period for the blobs in the container since the policy creation, in days. | ||
* @member {string} [state] The ImmutabilityPolicy state of a blob container, | ||
* possible values include: Locked and Unlocked. Possible values include: | ||
* 'Locked', 'Unlocked' | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of ImmutabilityPolicy | ||
* | ||
* @returns {object} metadata of ImmutabilityPolicy | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'ImmutabilityPolicy', | ||
type: { | ||
name: 'Composite', | ||
className: 'ImmutabilityPolicy', | ||
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' | ||
} | ||
}, | ||
etag: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'etag', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
immutabilityPeriodSinceCreationInDays: { | ||
required: true, | ||
serializedName: 'properties.immutabilityPeriodSinceCreationInDays', | ||
type: { | ||
name: 'Number' | ||
} | ||
}, | ||
state: { | ||
required: false, | ||
readOnly: true, | ||
serializedName: 'properties.state', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = ImmutabilityPolicy; |
Oops, something went wrong.