Skip to content

Commit 809e9ad

Browse files
author
SDKAuto
committed
CodeGen from PR 19138 in Azure/azure-rest-api-specs
Merge b42e017085861b65191a9db3ab276d074fdc5e45 into 61001b68a8aa743f0dd890224c6b5cb130ef006e
1 parent f6572b7 commit 809e9ad

File tree

12 files changed

+130
-257
lines changed

12 files changed

+130
-257
lines changed

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Release History
22

3+
## 9.0.0 (2022-05-19)
4+
5+
**Breaking Changes**
6+
7+
- Operation ResourceGuardProxy.put has a new signature
8+
- Interface AzureIaaSVMProtectedItemExtendedInfo no longer has parameter newestRecoveryPointInArchive
9+
- Interface AzureIaaSVMProtectedItemExtendedInfo no longer has parameter oldestRecoveryPointInArchive
10+
- Interface AzureIaaSVMProtectedItemExtendedInfo no longer has parameter oldestRecoveryPointInVault
11+
- Interface AzureVmWorkloadProtectedItemExtendedInfo no longer has parameter newestRecoveryPointInArchive
12+
- Interface AzureVmWorkloadProtectedItemExtendedInfo no longer has parameter oldestRecoveryPointInArchive
13+
- Interface AzureVmWorkloadProtectedItemExtendedInfo no longer has parameter oldestRecoveryPointInVault
14+
- Interface SubProtectionPolicy no longer has parameter tieringPolicy
15+
- Removed Enum KnownTieringMode
16+
17+
318
## 8.2.0 (2022-05-11)
419

520
**Features**
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "4c25202569e348fc15275947be54acd191e70c0c",
2+
"commit": "4742065e8d48160292fbce6790710c6835f8dc4f",
33
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\recoveryservicesbackup\\resource-manager\\readme.md --use=@autorest/[email protected].20220408.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/[email protected].20220425.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
66
"release_tool": "@azure-tools/[email protected]",
7-
"use": "@autorest/[email protected].20220408.1"
7+
"use": "@autorest/[email protected].20220425.1"
88
}

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json

Lines changed: 8 additions & 14 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 RecoveryServicesBackupClient.",
6-
"version": "8.2.0",
6+
"version": "9.0.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -40,9 +40,11 @@
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
43-
"@azure-tools/test-recorder": "^1.0.0",
43+
"@azure-tools/test-recorder": "^2.0.0",
44+
"@azure-tools/test-credential": "^1.0.0",
4445
"mocha": "^7.1.1",
45-
"cross-env": "^7.0.2"
46+
"cross-env": "^7.0.2",
47+
"@azure/dev-tool": "^1.0.0"
4648
},
4749
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup",
4850
"repository": {
@@ -93,7 +95,7 @@
9395
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
9496
"unit-test:browser": "echo skipped",
9597
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
96-
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
98+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
9799
"integration-test:browser": "echo skipped",
98100
"docs": "echo skipped"
99101
},
@@ -106,13 +108,5 @@
106108
}
107109
]
108110
},
109-
"autoPublish": true,
110-
"//sampleConfiguration": {
111-
"productName": "",
112-
"productSlugs": [
113-
"azure"
114-
],
115-
"disableDocsMs": true,
116-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup?view=azure-node-preview"
117-
}
118-
}
111+
"autoPublish": true
112+
}

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

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ export type AzureIaaSVMProtectedItem = ProtectedItem & {
215215

216216
// @public
217217
export interface AzureIaaSVMProtectedItemExtendedInfo {
218-
newestRecoveryPointInArchive?: Date;
219218
oldestRecoveryPoint?: Date;
220-
oldestRecoveryPointInArchive?: Date;
221-
oldestRecoveryPointInVault?: Date;
222219
policyInconsistent?: boolean;
223220
recoveryPointCount?: number;
224221
}
@@ -232,9 +229,6 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
232229
instantRPDetails?: InstantRPAdditionalDetails;
233230
schedulePolicy?: SchedulePolicyUnion;
234231
retentionPolicy?: RetentionPolicyUnion;
235-
tieringPolicy?: {
236-
[propertyName: string]: TieringPolicy;
237-
};
238232
instantRpRetentionRangeInDays?: number;
239233
timeZone?: string;
240234
policyType?: IaasvmPolicyType;
@@ -407,10 +401,7 @@ export type AzureVmWorkloadProtectedItem = ProtectedItem & {
407401

408402
// @public
409403
export interface AzureVmWorkloadProtectedItemExtendedInfo {
410-
newestRecoveryPointInArchive?: Date;
411404
oldestRecoveryPoint?: Date;
412-
oldestRecoveryPointInArchive?: Date;
413-
oldestRecoveryPointInVault?: Date;
414405
policyState?: string;
415406
recoveryModel?: string;
416407
recoveryPointCount?: number;
@@ -2694,18 +2685,6 @@ export enum KnownSupportStatus {
26942685
Supported = "Supported"
26952686
}
26962687

2697-
// @public
2698-
export enum KnownTieringMode {
2699-
// (undocumented)
2700-
DoNotTier = "DoNotTier",
2701-
// (undocumented)
2702-
Invalid = "Invalid",
2703-
// (undocumented)
2704-
TierAfter = "TierAfter",
2705-
// (undocumented)
2706-
TierRecommended = "TierRecommended"
2707-
}
2708-
27092688
// @public
27102689
export enum KnownType {
27112690
// (undocumented)
@@ -3883,7 +3862,7 @@ export type ResourceGuardProxiesGetResponse = ResourceGuardProxyBaseResourceList
38833862
export interface ResourceGuardProxy {
38843863
delete(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options?: ResourceGuardProxyDeleteOptionalParams): Promise<void>;
38853864
get(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options?: ResourceGuardProxyGetOptionalParams): Promise<ResourceGuardProxyGetResponse>;
3886-
put(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, options?: ResourceGuardProxyPutOptionalParams): Promise<ResourceGuardProxyPutResponse>;
3865+
put(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, parameters: ResourceGuardProxyBaseResource, options?: ResourceGuardProxyPutOptionalParams): Promise<ResourceGuardProxyPutResponse>;
38873866
unlockDelete(vaultName: string, resourceGroupName: string, resourceGuardProxyName: string, parameters: UnlockDeleteRequest, options?: ResourceGuardProxyUnlockDeleteOptionalParams): Promise<ResourceGuardProxyUnlockDeleteResponse>;
38883867
}
38893868

@@ -4104,9 +4083,6 @@ export interface SubProtectionPolicy {
41044083
policyType?: PolicyType;
41054084
retentionPolicy?: RetentionPolicyUnion;
41064085
schedulePolicy?: SchedulePolicyUnion;
4107-
tieringPolicy?: {
4108-
[propertyName: string]: TieringPolicy;
4109-
};
41104086
}
41114087

41124088
// @public
@@ -4126,16 +4102,6 @@ export interface TargetRestoreInfo {
41264102
targetDirectoryForFileRestore?: string;
41274103
}
41284104

4129-
// @public
4130-
export type TieringMode = string;
4131-
4132-
// @public
4133-
export interface TieringPolicy {
4134-
duration?: number;
4135-
durationType?: RetentionDurationType;
4136-
tieringMode?: TieringMode;
4137-
}
4138-
41394105
// @public
41404106
export interface TokenInformation {
41414107
expiryTimeInUtcTicks?: number;

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

Lines changed: 24 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,12 +1122,6 @@ export interface SubProtectionPolicy {
11221122
schedulePolicy?: SchedulePolicyUnion;
11231123
/** Retention policy with the details on backup copy retention ranges. */
11241124
retentionPolicy?: RetentionPolicyUnion;
1125-
/**
1126-
* Tiering policy to automatically move RPs to another tier.
1127-
* Key is Target Tier, defined in RecoveryPointTierType enum.
1128-
* Tiering policy specifies the criteria to move RP to the target tier.
1129-
*/
1130-
tieringPolicy?: { [propertyName: string]: TieringPolicy };
11311125
}
11321126

11331127
/** Base class for backup schedule. */
@@ -1146,40 +1140,10 @@ export interface RetentionPolicy {
11461140
retentionPolicyType: "LongTermRetentionPolicy" | "SimpleRetentionPolicy";
11471141
}
11481142

1149-
/**
1150-
* Tiering Policy for a target tier.
1151-
* If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier
1152-
*/
1153-
export interface TieringPolicy {
1154-
/**
1155-
* Tiering Mode to control automatic tiering of recovery points. Supported values are:
1156-
* 1. TierRecommended: Tier all recovery points recommended to be tiered
1157-
* 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
1158-
* 3. DoNotTier: Do not tier any recovery points
1159-
*/
1160-
tieringMode?: TieringMode;
1161-
/**
1162-
* Number of days/weeks/months/years to retain backups in current tier before tiering.
1163-
* Used only if TieringMode is set to TierAfter
1164-
*/
1165-
duration?: number;
1166-
/**
1167-
* Retention duration type: days/weeks/months/years
1168-
* Used only if TieringMode is set to TierAfter
1169-
*/
1170-
durationType?: RetentionDurationType;
1171-
}
1172-
11731143
/** Additional information on Azure IaaS VM specific backup item. */
11741144
export interface AzureIaaSVMProtectedItemExtendedInfo {
1175-
/** The oldest backup copy available for this backup item across all tiers. */
1145+
/** The oldest backup copy available for this backup item. */
11761146
oldestRecoveryPoint?: Date;
1177-
/** The oldest backup copy available for this backup item in vault tier */
1178-
oldestRecoveryPointInVault?: Date;
1179-
/** The oldest backup copy available for this backup item in archive tier */
1180-
oldestRecoveryPointInArchive?: Date;
1181-
/** The latest backup copy available for this backup item in archive tier */
1182-
newestRecoveryPointInArchive?: Date;
11831147
/** Number of backup copies available for this backup item. */
11841148
recoveryPointCount?: number;
11851149
/** Specifies if backup policy associated with the backup item is inconsistent. */
@@ -1309,14 +1273,8 @@ export interface AzureStorageJobTaskDetails {
13091273

13101274
/** Additional information on Azure Workload for SQL specific backup item. */
13111275
export interface AzureVmWorkloadProtectedItemExtendedInfo {
1312-
/** The oldest backup copy available for this backup item across all tiers. */
1276+
/** The oldest backup copy available for this backup item. */
13131277
oldestRecoveryPoint?: Date;
1314-
/** The oldest backup copy available for this backup item in vault tier */
1315-
oldestRecoveryPointInVault?: Date;
1316-
/** The oldest backup copy available for this backup item in archive tier */
1317-
oldestRecoveryPointInArchive?: Date;
1318-
/** The latest backup copy available for this backup item in archive tier */
1319-
newestRecoveryPointInArchive?: Date;
13201278
/** Number of backup copies available for this backup item. */
13211279
recoveryPointCount?: number;
13221280
/** Indicates consistency of policy object and policy applied to this backup item. */
@@ -2720,12 +2678,6 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
27202678
schedulePolicy?: SchedulePolicyUnion;
27212679
/** Retention policy with the details on backup copy retention ranges. */
27222680
retentionPolicy?: RetentionPolicyUnion;
2723-
/**
2724-
* Tiering policy to automatically move RPs to another tier
2725-
* Key is Target Tier, defined in RecoveryPointTierType enum.
2726-
* Tiering policy specifies the criteria to move RP to the target tier.
2727-
*/
2728-
tieringPolicy?: { [propertyName: string]: TieringPolicy };
27292681
/** Instant RP retention policy range in days */
27302682
instantRpRetentionRangeInDays?: number;
27312683
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
@@ -4289,48 +4241,6 @@ export enum KnownPolicyType {
42894241
*/
42904242
export type PolicyType = string;
42914243

4292-
/** Known values of {@link TieringMode} that the service accepts. */
4293-
export enum KnownTieringMode {
4294-
Invalid = "Invalid",
4295-
TierRecommended = "TierRecommended",
4296-
TierAfter = "TierAfter",
4297-
DoNotTier = "DoNotTier"
4298-
}
4299-
4300-
/**
4301-
* Defines values for TieringMode. \
4302-
* {@link KnownTieringMode} can be used interchangeably with TieringMode,
4303-
* this enum contains the known values that the service supports.
4304-
* ### Known values supported by the service
4305-
* **Invalid** \
4306-
* **TierRecommended** \
4307-
* **TierAfter** \
4308-
* **DoNotTier**
4309-
*/
4310-
export type TieringMode = string;
4311-
4312-
/** Known values of {@link RetentionDurationType} that the service accepts. */
4313-
export enum KnownRetentionDurationType {
4314-
Invalid = "Invalid",
4315-
Days = "Days",
4316-
Weeks = "Weeks",
4317-
Months = "Months",
4318-
Years = "Years"
4319-
}
4320-
4321-
/**
4322-
* Defines values for RetentionDurationType. \
4323-
* {@link KnownRetentionDurationType} can be used interchangeably with RetentionDurationType,
4324-
* this enum contains the known values that the service supports.
4325-
* ### Known values supported by the service
4326-
* **Invalid** \
4327-
* **Days** \
4328-
* **Weeks** \
4329-
* **Months** \
4330-
* **Years**
4331-
*/
4332-
export type RetentionDurationType = string;
4333-
43344244
/** Known values of {@link HealthStatus} that the service accepts. */
43354245
export enum KnownHealthStatus {
43364246
Passed = "Passed",
@@ -4537,6 +4447,28 @@ export enum KnownRestorePointQueryType {
45374447
*/
45384448
export type RestorePointQueryType = string;
45394449

4450+
/** Known values of {@link RetentionDurationType} that the service accepts. */
4451+
export enum KnownRetentionDurationType {
4452+
Invalid = "Invalid",
4453+
Days = "Days",
4454+
Weeks = "Weeks",
4455+
Months = "Months",
4456+
Years = "Years"
4457+
}
4458+
4459+
/**
4460+
* Defines values for RetentionDurationType. \
4461+
* {@link KnownRetentionDurationType} can be used interchangeably with RetentionDurationType,
4462+
* this enum contains the known values that the service supports.
4463+
* ### Known values supported by the service
4464+
* **Invalid** \
4465+
* **Days** \
4466+
* **Weeks** \
4467+
* **Months** \
4468+
* **Years**
4469+
*/
4470+
export type RetentionDurationType = string;
4471+
45404472
/** Known values of {@link JobStatus} that the service accepts. */
45414473
export enum KnownJobStatus {
45424474
Invalid = "Invalid",

0 commit comments

Comments
 (0)