Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions lib/services/storageManagement2/lib/models/azureEntityResource.js
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;
77 changes: 77 additions & 0 deletions lib/services/storageManagement2/lib/models/azureResource.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* 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');

/**
* An Azure Resource Manager resource.
*
* @extends models['BaseResource']
*/
class AzureResource extends models['BaseResource'] {
/**
* Create a AzureResource.
* @member {string} [id] Fully qualified resource ID for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* @member {string} [name] The name of the resource.
* @member {string} [type] The type of the resource. Ex-
* Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
*/
constructor() {
super();
}

/**
* Defines the metadata of AzureResource
*
* @returns {object} metadata of AzureResource
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureResource',
type: {
name: 'Composite',
className: 'AzureResource',
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'
}
}
}
}
};
}
}

module.exports = AzureResource;
212 changes: 212 additions & 0 deletions lib/services/storageManagement2/lib/models/blobContainer.js
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;
Loading