Skip to content

Commit 985064d

Browse files
author
SDKAuto
committed
CodeGen from PR 21500 in Azure/azure-rest-api-specs
Merge fb7cb60f0179a83aabc5fa0d6081e3806a47b196 into 7f67f12515a8d572569c4257aebed850240598b9
1 parent 059ff6d commit 985064d

File tree

16 files changed

+320
-96
lines changed

16 files changed

+320
-96
lines changed

sdk/storage/arm-storage/CHANGELOG.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
# Release History
2+
3+
## 18.1.0 (2022-11-11)
4+
5+
**Features**
26

3-
## 18.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added Type Alias ListEncryptionScopesInclude
8+
- Interface EncryptionScopesListNextOptionalParams has a new optional parameter filter
9+
- Interface EncryptionScopesListNextOptionalParams has a new optional parameter include
10+
- Interface EncryptionScopesListNextOptionalParams has a new optional parameter maxpagesize
11+
- Interface EncryptionScopesListOptionalParams has a new optional parameter filter
12+
- Interface EncryptionScopesListOptionalParams has a new optional parameter include
13+
- Interface EncryptionScopesListOptionalParams has a new optional parameter maxpagesize
14+
- Interface ManagementPolicyBaseBlob has a new optional parameter tierToCold
15+
- Interface ManagementPolicyBaseBlob has a new optional parameter tierToHot
16+
- Interface ManagementPolicySnapShot has a new optional parameter tierToCold
17+
- Interface ManagementPolicySnapShot has a new optional parameter tierToHot
18+
- Interface ManagementPolicyVersion has a new optional parameter tierToCold
19+
- Interface ManagementPolicyVersion has a new optional parameter tierToHot
20+
- Added Enum KnownListEncryptionScopesInclude
21+
22+
1323
## 18.0.0 (2022-08-16)
1424

1525
**Features**

sdk/storage/arm-storage/_meta.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "3ccabd5f8eb0b3db0c18d21ade484e42ebd1f554",
2+
"commit": "16d5f13e2bbfb60b08951742d1ce35becbbcab3d",
33
"readme": "specification/storage/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storage\\resource-manager\\readme.md --use=@autorest/[email protected].1.20220727.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/storage/resource-manager/readme.md --use=@autorest/[email protected].2",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.1",
7-
"use": "@autorest/[email protected].1.20220727.1"
8-
}
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.1",
7+
"use": "@autorest/[email protected].2"
8+
}

sdk/storage/arm-storage/package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for StorageManagementClient.",
6-
"version": "18.0.1",
6+
"version": "18.1.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
@@ -109,13 +109,5 @@
109109
}
110110
]
111111
},
112-
"autoPublish": true,
113-
"//sampleConfiguration": {
114-
"productName": "",
115-
"productSlugs": [
116-
"azure"
117-
],
118-
"disableDocsMs": true,
119-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storage?view=azure-node-preview"
120-
}
121-
}
112+
"autoPublish": true
113+
}

sdk/storage/arm-storage/review/arm-storage.api.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,13 +604,19 @@ export type EncryptionScopesGetResponse = EncryptionScope;
604604

605605
// @public
606606
export interface EncryptionScopesListNextOptionalParams extends coreClient.OperationOptions {
607+
filter?: string;
608+
include?: ListEncryptionScopesInclude;
609+
maxpagesize?: number;
607610
}
608611

609612
// @public
610613
export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
611614

612615
// @public
613616
export interface EncryptionScopesListOptionalParams extends coreClient.OperationOptions {
617+
filter?: string;
618+
include?: ListEncryptionScopesInclude;
619+
maxpagesize?: number;
614620
}
615621

616622
// @public
@@ -1190,6 +1196,13 @@ export enum KnownListContainersInclude {
11901196
Deleted = "deleted"
11911197
}
11921198

1199+
// @public
1200+
export enum KnownListEncryptionScopesInclude {
1201+
All = "All",
1202+
Disabled = "Disabled",
1203+
Enabled = "Enabled"
1204+
}
1205+
11931206
// @public
11941207
export enum KnownManagementPolicyName {
11951208
Default = "default"
@@ -1474,6 +1487,9 @@ export interface ListContainerItems {
14741487
// @public
14751488
export type ListContainersInclude = string;
14761489

1490+
// @public
1491+
export type ListEncryptionScopesInclude = string;
1492+
14771493
// @public (undocumented)
14781494
export interface ListQueue extends Resource {
14791495
metadata?: {
@@ -1628,7 +1644,9 @@ export interface ManagementPolicyBaseBlob {
16281644
delete?: DateAfterModification;
16291645
enableAutoTierToHotFromCool?: boolean;
16301646
tierToArchive?: DateAfterModification;
1647+
tierToCold?: DateAfterModification;
16311648
tierToCool?: DateAfterModification;
1649+
tierToHot?: DateAfterModification;
16321650
}
16331651

16341652
// @public
@@ -1664,14 +1682,18 @@ export interface ManagementPolicySchema {
16641682
export interface ManagementPolicySnapShot {
16651683
delete?: DateAfterCreation;
16661684
tierToArchive?: DateAfterCreation;
1685+
tierToCold?: DateAfterCreation;
16671686
tierToCool?: DateAfterCreation;
1687+
tierToHot?: DateAfterCreation;
16681688
}
16691689

16701690
// @public
16711691
export interface ManagementPolicyVersion {
16721692
delete?: DateAfterCreation;
16731693
tierToArchive?: DateAfterCreation;
1694+
tierToCold?: DateAfterCreation;
16741695
tierToCool?: DateAfterCreation;
1696+
tierToHot?: DateAfterCreation;
16751697
}
16761698

16771699
// @public

sdk/storage/arm-storage/src/models/index.ts

Lines changed: 67 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,14 @@ export interface ManagementPolicyAction {
993993

994994
/** Management policy action for base blob. */
995995
export interface ManagementPolicyBaseBlob {
996-
/** The function to tier blobs to cool storage. Support blobs currently at Hot tier */
996+
/** The function to tier blobs to cool storage. */
997997
tierToCool?: DateAfterModification;
998-
/** The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier */
998+
/** The function to tier blobs to archive storage. */
999999
tierToArchive?: DateAfterModification;
1000+
/** The function to tier blobs to cold storage. */
1001+
tierToCold?: DateAfterModification;
1002+
/** The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts */
1003+
tierToHot?: DateAfterModification;
10001004
/** The function to delete the blob */
10011005
delete?: DateAfterModification;
10021006
/** This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. */
@@ -1017,10 +1021,14 @@ export interface DateAfterModification {
10171021

10181022
/** Management policy action for snapshot. */
10191023
export interface ManagementPolicySnapShot {
1020-
/** The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier */
1024+
/** The function to tier blob snapshot to cool storage. */
10211025
tierToCool?: DateAfterCreation;
1022-
/** The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier */
1026+
/** The function to tier blob snapshot to archive storage. */
10231027
tierToArchive?: DateAfterCreation;
1028+
/** The function to tier blobs to cold storage. */
1029+
tierToCold?: DateAfterCreation;
1030+
/** The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts */
1031+
tierToHot?: DateAfterCreation;
10241032
/** The function to delete the blob snapshot */
10251033
delete?: DateAfterCreation;
10261034
}
@@ -1035,10 +1043,14 @@ export interface DateAfterCreation {
10351043

10361044
/** Management policy action for blob version. */
10371045
export interface ManagementPolicyVersion {
1038-
/** The function to tier blob version to cool storage. Support blob version currently at Hot tier */
1046+
/** The function to tier blob version to cool storage. */
10391047
tierToCool?: DateAfterCreation;
1040-
/** The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier */
1048+
/** The function to tier blob version to archive storage. */
10411049
tierToArchive?: DateAfterCreation;
1050+
/** The function to tier blobs to cold storage. */
1051+
tierToCold?: DateAfterCreation;
1052+
/** The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts */
1053+
tierToHot?: DateAfterCreation;
10421054
/** The function to delete the blob version */
10431055
delete?: DateAfterCreation;
10441056
}
@@ -3259,6 +3271,27 @@ export enum KnownEncryptionScopeState {
32593271
*/
32603272
export type EncryptionScopeState = string;
32613273

3274+
/** Known values of {@link ListEncryptionScopesInclude} that the service accepts. */
3275+
export enum KnownListEncryptionScopesInclude {
3276+
/** All */
3277+
All = "All",
3278+
/** Enabled */
3279+
Enabled = "Enabled",
3280+
/** Disabled */
3281+
Disabled = "Disabled"
3282+
}
3283+
3284+
/**
3285+
* Defines values for ListEncryptionScopesInclude. \
3286+
* {@link KnownListEncryptionScopesInclude} can be used interchangeably with ListEncryptionScopesInclude,
3287+
* this enum contains the known values that the service supports.
3288+
* ### Known values supported by the service
3289+
* **All** \
3290+
* **Enabled** \
3291+
* **Disabled**
3292+
*/
3293+
export type ListEncryptionScopesInclude = string;
3294+
32623295
/** Known values of {@link AllowedMethods} that the service accepts. */
32633296
export enum KnownAllowedMethods {
32643297
/** Delete */
@@ -3932,14 +3965,28 @@ export type EncryptionScopesGetResponse = EncryptionScope;
39323965

39333966
/** Optional parameters. */
39343967
export interface EncryptionScopesListOptionalParams
3935-
extends coreClient.OperationOptions {}
3968+
extends coreClient.OperationOptions {
3969+
/** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
3970+
maxpagesize?: number;
3971+
/** Optional. When specified, only encryption scope names starting with the filter will be listed. */
3972+
filter?: string;
3973+
/** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
3974+
include?: ListEncryptionScopesInclude;
3975+
}
39363976

39373977
/** Contains response data for the list operation. */
39383978
export type EncryptionScopesListResponse = EncryptionScopeListResult;
39393979

39403980
/** Optional parameters. */
39413981
export interface EncryptionScopesListNextOptionalParams
3942-
extends coreClient.OperationOptions {}
3982+
extends coreClient.OperationOptions {
3983+
/** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
3984+
maxpagesize?: number;
3985+
/** Optional. When specified, only encryption scope names starting with the filter will be listed. */
3986+
filter?: string;
3987+
/** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
3988+
include?: ListEncryptionScopesInclude;
3989+
}
39433990

39443991
/** Contains response data for the listNext operation. */
39453992
export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
@@ -3968,10 +4015,10 @@ export type BlobServicesGetServicePropertiesResponse = BlobServiceProperties;
39684015
/** Optional parameters. */
39694016
export interface BlobContainersListOptionalParams
39704017
extends coreClient.OperationOptions {
3971-
/** Optional. Specified maximum number of containers that can be included in the list. */
3972-
maxpagesize?: string;
39734018
/** Optional. When specified, only container names starting with the filter will be listed. */
39744019
filter?: string;
4020+
/** Optional. Specified maximum number of containers that can be included in the list. */
4021+
maxpagesize?: string;
39754022
/** Optional, used to include the properties for soft deleted blob containers. */
39764023
include?: ListContainersInclude;
39774024
}
@@ -4091,10 +4138,10 @@ export interface BlobContainersObjectLevelWormOptionalParams
40914138
/** Optional parameters. */
40924139
export interface BlobContainersListNextOptionalParams
40934140
extends coreClient.OperationOptions {
4094-
/** Optional. Specified maximum number of containers that can be included in the list. */
4095-
maxpagesize?: string;
40964141
/** Optional. When specified, only container names starting with the filter will be listed. */
40974142
filter?: string;
4143+
/** Optional. Specified maximum number of containers that can be included in the list. */
4144+
maxpagesize?: string;
40984145
/** Optional, used to include the properties for soft deleted blob containers. */
40994146
include?: ListContainersInclude;
41004147
}
@@ -4126,10 +4173,10 @@ export type FileServicesGetServicePropertiesResponse = FileServiceProperties;
41264173
/** Optional parameters. */
41274174
export interface FileSharesListOptionalParams
41284175
extends coreClient.OperationOptions {
4129-
/** Optional. Specified maximum number of shares that can be included in the list. */
4130-
maxpagesize?: string;
41314176
/** Optional. When specified, only share names starting with the filter will be listed. */
41324177
filter?: string;
4178+
/** Optional. Specified maximum number of shares that can be included in the list. */
4179+
maxpagesize?: string;
41334180
/** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
41344181
expand?: string;
41354182
}
@@ -4195,10 +4242,10 @@ export type FileSharesLeaseResponse = FileSharesLeaseHeaders &
41954242
/** Optional parameters. */
41964243
export interface FileSharesListNextOptionalParams
41974244
extends coreClient.OperationOptions {
4198-
/** Optional. Specified maximum number of shares that can be included in the list. */
4199-
maxpagesize?: string;
42004245
/** Optional. When specified, only share names starting with the filter will be listed. */
42014246
filter?: string;
4247+
/** Optional. Specified maximum number of shares that can be included in the list. */
4248+
maxpagesize?: string;
42024249
/** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
42034250
expand?: string;
42044251
}
@@ -4253,10 +4300,10 @@ export interface QueueDeleteOptionalParams
42534300

42544301
/** Optional parameters. */
42554302
export interface QueueListOptionalParams extends coreClient.OperationOptions {
4256-
/** Optional, a maximum number of queues that should be included in a list queue response */
4257-
maxpagesize?: string;
42584303
/** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
42594304
filter?: string;
4305+
/** Optional, a maximum number of queues that should be included in a list queue response */
4306+
maxpagesize?: string;
42604307
}
42614308

42624309
/** Contains response data for the list operation. */
@@ -4265,10 +4312,10 @@ export type QueueListResponse = ListQueueResource;
42654312
/** Optional parameters. */
42664313
export interface QueueListNextOptionalParams
42674314
extends coreClient.OperationOptions {
4268-
/** Optional, a maximum number of queues that should be included in a list queue response */
4269-
maxpagesize?: string;
42704315
/** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
42714316
filter?: string;
4317+
/** Optional, a maximum number of queues that should be included in a list queue response */
4318+
maxpagesize?: string;
42724319
}
42734320

42744321
/** Contains response data for the listNext operation. */

0 commit comments

Comments
 (0)