Skip to content
Closed
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
53 changes: 53 additions & 0 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,26 @@ export interface LegalHoldProperties {
* Properties of the blob container, including Id, resource name, resource type, Etag.
*/
export interface BlobContainer extends AzureEntityResource {
/**
* The version of the deleted blob container.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly version?: string;
/**
* Indicates whether the blob container was deleted.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly deleted?: boolean;
/**
* Blob container deletion time.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly deletedTime?: Date;
/**
* Remaining retention days for soft deleted blob container.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly remainingRetentionDays?: number;
/**
* Default the container to use specified encryption scope for all writes.
*/
Expand Down Expand Up @@ -1874,6 +1894,26 @@ export interface LegalHold {
* The blob container properties be listed out.
*/
export interface ListContainerItem extends AzureEntityResource {
/**
* The version of the deleted blob container.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly version?: string;
/**
* Indicates whether the blob container was deleted.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly deleted?: boolean;
/**
* Blob container deletion time.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly deletedTime?: Date;
/**
* Remaining retention days for soft deleted blob container.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly remainingRetentionDays?: number;
/**
* Default the container to use specified encryption scope for all writes.
*/
Expand Down Expand Up @@ -2424,6 +2464,11 @@ export interface BlobContainersListOptionalParams extends msRest.RequestOptionsB
* Optional. When specified, only container names starting with the filter will be listed.
*/
filter?: string;
/**
* Optional, used to include the properties for soft deleted blob containers. Possible values
* include: 'deleted'
*/
include?: ListContainersInclude;
}

/**
Expand Down Expand Up @@ -3126,6 +3171,14 @@ export type StorageAccountExpand = 'geoReplicationStats' | 'blobRestoreStatus';
*/
export type ListKeyExpand = 'kerb';

/**
* Defines values for ListContainersInclude.
* Possible values include: 'deleted'
* @readonly
* @enum {string}
*/
export type ListContainersInclude = 'deleted';

/**
* Defines values for ListSharesExpand.
* Possible values include: 'deleted'
Expand Down
56 changes: 56 additions & 0 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2839,6 +2839,34 @@ export const BlobContainer: msRest.CompositeMapper = {
className: "BlobContainer",
modelProperties: {
...AzureEntityResource.type.modelProperties,
version: {
readOnly: true,
serializedName: "properties.version",
type: {
name: "String"
}
},
deleted: {
readOnly: true,
serializedName: "properties.deleted",
type: {
name: "Boolean"
}
},
deletedTime: {
readOnly: true,
serializedName: "properties.deletedTime",
type: {
name: "DateTime"
}
},
remainingRetentionDays: {
readOnly: true,
serializedName: "properties.remainingRetentionDays",
type: {
name: "Number"
}
},
defaultEncryptionScope: {
serializedName: "properties.defaultEncryptionScope",
type: {
Expand Down Expand Up @@ -3001,6 +3029,34 @@ export const ListContainerItem: msRest.CompositeMapper = {
className: "ListContainerItem",
modelProperties: {
...AzureEntityResource.type.modelProperties,
version: {
readOnly: true,
serializedName: "properties.version",
type: {
name: "String"
}
},
deleted: {
readOnly: true,
serializedName: "properties.deleted",
type: {
name: "Boolean"
}
},
deletedTime: {
readOnly: true,
serializedName: "properties.deletedTime",
type: {
name: "DateTime"
}
},
remainingRetentionDays: {
readOnly: true,
serializedName: "properties.remainingRetentionDays",
type: {
name: "Number"
}
},
defaultEncryptionScope: {
serializedName: "properties.defaultEncryptionScope",
type: {
Expand Down
12 changes: 12 additions & 0 deletions sdk/storage/arm-storage/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@ export const immutabilityPolicyName: msRest.OperationURLParameter = {
}
}
};
export const include: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"include"
],
mapper: {
serializedName: "$include",
type: {
name: "String"
}
}
};
export const location: msRest.OperationURLParameter = {
parameterPath: "location",
mapper: {
Expand Down
3 changes: 2 additions & 1 deletion sdk/storage/arm-storage/src/operations/blobContainers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,8 @@ const listOperationSpec: msRest.OperationSpec = {
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter
Parameters.filter,
Parameters.include
],
headerParameters: [
Parameters.acceptLanguage
Expand Down