Skip to content

Commit e01ec5e

Browse files
author
SDKAuto
committed
CodeGen from PR 17449 in Azure/azure-rest-api-specs
Merge bba067589fb6a86a62f25f856f47eee2eb71b9a1 into 150b17f84466fccc8f443683fa5e6ba92564ef1a
1 parent 8b0a9ef commit e01ec5e

File tree

10 files changed

+287
-46
lines changed

10 files changed

+287
-46
lines changed

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md

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

3+
## 8.1.0 (2022-01-22)
4+
5+
**Features**
6+
7+
- Added Interface DailySchedule
8+
- Added Interface WeeklySchedule
9+
- Added Type Alias IaasvmPolicyType
10+
- Added Type Alias SimpleSchedulePolicyV2
11+
- Type Alias AzureIaaSVMProtectionPolicy has a new parameter policyType
12+
- Added Enum KnownIaasvmPolicyType
13+
- Enum KnownContainerType has a new value AzureWorkloadContainer
14+
- Enum KnownContainerType has a new value MicrosoftClassicComputeVirtualMachines
15+
- Enum KnownContainerType has a new value MicrosoftComputeVirtualMachines
16+
- Enum KnownProtectionIntentItemType has a new value AzureWorkloadAutoProtectionIntent
17+
- Enum KnownProtectionIntentItemType has a new value AzureWorkloadSQLAutoProtectionIntent
18+
19+
320
## 8.0.0 (2022-01-20)
421

522
The package of @azure/arm-recoveryservicesbackup is using our next generation design principles since version 8.0.0, which contains breaking changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
2+
"commit": "27446cba002d1ecc57b2a82a4e3f27c683b38d56",
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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
6+
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-recoveryservicesbackup.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for RecoveryServicesBackupClient.",
6-
"version": "8.0.0",
7-
"engines": { "node": ">=12.0.0" },
6+
"version": "8.1.0",
7+
"engines": {
8+
"node": ">=12.0.0"
9+
},
810
"dependencies": {
911
"@azure/core-lro": "^2.2.0",
1012
"@azure/abort-controller": "^1.0.0",
@@ -14,7 +16,13 @@
1416
"@azure/core-rest-pipeline": "^1.1.0",
1517
"tslib": "^2.2.0"
1618
},
17-
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19+
"keywords": [
20+
"node",
21+
"azure",
22+
"typescript",
23+
"browser",
24+
"isomorphic"
25+
],
1826
"license": "MIT",
1927
"main": "./dist/index.js",
2028
"module": "./dist-esm/src/index.js",
@@ -41,7 +49,9 @@
4149
"type": "git",
4250
"url": "https://github.com/Azure/azure-sdk-for-js.git"
4351
},
44-
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
52+
"bugs": {
53+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
54+
},
4555
"files": [
4656
"dist/**/*.js",
4757
"dist/**/*.js.map",
@@ -88,19 +98,5 @@
8898
"docs": "echo skipped"
8999
},
90100
"sideEffects": false,
91-
"//metadata": {
92-
"constantPaths": [
93-
{
94-
"path": "src/RecoveryServicesBackupClient.ts",
95-
"prefix": "packageDetails"
96-
}
97-
]
98-
},
99-
"autoPublish": true,
100-
"//sampleConfiguration": {
101-
"productName": "",
102-
"productSlugs": ["azure"],
103-
"disableDocsMs": true,
104-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup?view=azure-node-preview"
105-
}
106-
}
101+
"autoPublish": true
102+
}

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

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
231231
retentionPolicy?: RetentionPolicyUnion;
232232
instantRpRetentionRangeInDays?: number;
233233
timeZone?: string;
234+
policyType?: IaasvmPolicyType;
234235
};
235236

236237
// @public
@@ -1373,6 +1374,11 @@ export interface DailyRetentionSchedule {
13731374
retentionTimes?: Date[];
13741375
}
13751376

1377+
// @public (undocumented)
1378+
export interface DailySchedule {
1379+
scheduleRunTimes?: Date[];
1380+
}
1381+
13761382
// @public
13771383
export type DataMoveLevel = string;
13781384

@@ -1682,6 +1688,9 @@ export type IaasVmilrRegistrationRequest = ILRRequest & {
16821688
renewExistingRegistration?: boolean;
16831689
};
16841690

1691+
// @public
1692+
export type IaasvmPolicyType = string;
1693+
16851694
// @public
16861695
export type IaaSVMProtectableItem = WorkloadProtectableItem & {
16871696
protectableItemType: "IaaSVMProtectableItem" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines";
@@ -2029,6 +2038,8 @@ export enum KnownContainerType {
20292038
// (undocumented)
20302039
AzureSqlContainer = "AzureSqlContainer",
20312040
// (undocumented)
2041+
AzureWorkloadContainer = "AzureWorkloadContainer",
2042+
// (undocumented)
20322043
Cluster = "Cluster",
20332044
// (undocumented)
20342045
DPMContainer = "DPMContainer",
@@ -2043,6 +2054,10 @@ export enum KnownContainerType {
20432054
// (undocumented)
20442055
MABContainer = "MABContainer",
20452056
// (undocumented)
2057+
MicrosoftClassicComputeVirtualMachines = "Microsoft.ClassicCompute/virtualMachines",
2058+
// (undocumented)
2059+
MicrosoftComputeVirtualMachines = "Microsoft.Compute/virtualMachines",
2060+
// (undocumented)
20462061
SqlagWorkLoadContainer = "SQLAGWorkLoadContainer",
20472062
// (undocumented)
20482063
StorageContainer = "StorageContainer",
@@ -2186,6 +2201,16 @@ export enum KnownHealthStatus {
21862201
Passed = "Passed"
21872202
}
21882203

2204+
// @public
2205+
export enum KnownIaasvmPolicyType {
2206+
// (undocumented)
2207+
Invalid = "Invalid",
2208+
// (undocumented)
2209+
V1 = "V1",
2210+
// (undocumented)
2211+
V2 = "V2"
2212+
}
2213+
21892214
// @public
21902215
export enum KnownInfrastructureEncryptionState {
21912216
// (undocumented)
@@ -2423,8 +2448,12 @@ export enum KnownProtectionIntentItemType {
24232448
// (undocumented)
24242449
AzureResourceItem = "AzureResourceItem",
24252450
// (undocumented)
2451+
AzureWorkloadAutoProtectionIntent = "AzureWorkloadAutoProtectionIntent",
2452+
// (undocumented)
24262453
AzureWorkloadContainerAutoProtectionIntent = "AzureWorkloadContainerAutoProtectionIntent",
24272454
// (undocumented)
2455+
AzureWorkloadSQLAutoProtectionIntent = "AzureWorkloadSQLAutoProtectionIntent",
2456+
// (undocumented)
24282457
Invalid = "Invalid",
24292458
// (undocumented)
24302459
RecoveryServiceVaultItem = "RecoveryServiceVaultItem"
@@ -3963,11 +3992,11 @@ export type RetentionScheduleFormat = string;
39633992

39643993
// @public
39653994
export interface SchedulePolicy {
3966-
schedulePolicyType: "LogSchedulePolicy" | "LongTermSchedulePolicy" | "SimpleSchedulePolicy";
3995+
schedulePolicyType: "LogSchedulePolicy" | "LongTermSchedulePolicy" | "SimpleSchedulePolicy" | "SimpleSchedulePolicyV2";
39673996
}
39683997

39693998
// @public (undocumented)
3970-
export type SchedulePolicyUnion = SchedulePolicy | LogSchedulePolicy | LongTermSchedulePolicy | SimpleSchedulePolicy;
3999+
export type SchedulePolicyUnion = SchedulePolicy | LogSchedulePolicy | LongTermSchedulePolicy | SimpleSchedulePolicy | SimpleSchedulePolicyV2;
39714000

39724001
// @public
39734002
export type ScheduleRunType = string;
@@ -4013,6 +4042,15 @@ export type SimpleSchedulePolicy = SchedulePolicy & {
40134042
scheduleWeeklyFrequency?: number;
40144043
};
40154044

4045+
// @public
4046+
export type SimpleSchedulePolicyV2 = SchedulePolicy & {
4047+
schedulePolicyType: "SimpleSchedulePolicyV2";
4048+
scheduleRunFrequency?: ScheduleRunType;
4049+
hourlySchedule?: HourlySchedule;
4050+
dailySchedule?: DailySchedule;
4051+
weeklySchedule?: WeeklySchedule;
4052+
};
4053+
40164054
// @public
40174055
export type SoftDeleteFeatureState = string;
40184056

@@ -4215,6 +4253,13 @@ export interface WeeklyRetentionSchedule {
42154253
retentionTimes?: Date[];
42164254
}
42174255

4256+
// @public (undocumented)
4257+
export interface WeeklySchedule {
4258+
// (undocumented)
4259+
scheduleRunDays?: DayOfWeek[];
4260+
scheduleRunTimes?: Date[];
4261+
}
4262+
42184263
// @public
42194264
export type WeekOfMonth = "First" | "Second" | "Third" | "Fourth" | "Last" | "Invalid";
42204265

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

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export type SchedulePolicyUnion =
106106
| SchedulePolicy
107107
| LogSchedulePolicy
108108
| LongTermSchedulePolicy
109-
| SimpleSchedulePolicy;
109+
| SimpleSchedulePolicy
110+
| SimpleSchedulePolicyV2;
110111
export type RetentionPolicyUnion =
111112
| RetentionPolicy
112113
| LongTermRetentionPolicy
@@ -1129,7 +1130,8 @@ export interface SchedulePolicy {
11291130
schedulePolicyType:
11301131
| "LogSchedulePolicy"
11311132
| "LongTermSchedulePolicy"
1132-
| "SimpleSchedulePolicy";
1133+
| "SimpleSchedulePolicy"
1134+
| "SimpleSchedulePolicyV2";
11331135
}
11341136

11351137
/** Base class for retention policy. */
@@ -1531,6 +1533,17 @@ export interface HourlySchedule {
15311533
scheduleWindowDuration?: number;
15321534
}
15331535

1536+
export interface DailySchedule {
1537+
/** List of times of day this schedule has to be run. */
1538+
scheduleRunTimes?: Date[];
1539+
}
1540+
1541+
export interface WeeklySchedule {
1542+
scheduleRunDays?: DayOfWeek[];
1543+
/** List of times of day this schedule has to be run. */
1544+
scheduleRunTimes?: Date[];
1545+
}
1546+
15341547
/** IaaS VM workload specific restore details for restores using managed identity */
15351548
export interface IdentityBasedRestoreDetails {
15361549
/** Gets the class type. */
@@ -2669,6 +2682,7 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
26692682
instantRpRetentionRangeInDays?: number;
26702683
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
26712684
timeZone?: string;
2685+
policyType?: IaasvmPolicyType;
26722686
};
26732687

26742688
/** Azure SQL workload-specific backup policy. */
@@ -3168,6 +3182,20 @@ export type SimpleSchedulePolicy = SchedulePolicy & {
31683182
scheduleWeeklyFrequency?: number;
31693183
};
31703184

3185+
/** The V2 policy schedule for IaaS that supports hourly backups. */
3186+
export type SimpleSchedulePolicyV2 = SchedulePolicy & {
3187+
/** Polymorphic discriminator, which specifies the different types this object can be */
3188+
schedulePolicyType: "SimpleSchedulePolicyV2";
3189+
/** Frequency of the schedule operation of this policy. */
3190+
scheduleRunFrequency?: ScheduleRunType;
3191+
/** hourly schedule of this policy */
3192+
hourlySchedule?: HourlySchedule;
3193+
/** Daily schedule of this policy */
3194+
dailySchedule?: DailySchedule;
3195+
/** Weekly schedule of this policy */
3196+
weeklySchedule?: WeeklySchedule;
3197+
};
3198+
31713199
/** Long term retention policy. */
31723200
export type LongTermRetentionPolicy = RetentionPolicy & {
31733201
/** Polymorphic discriminator, which specifies the different types this object can be */
@@ -3700,7 +3728,9 @@ export enum KnownProtectionIntentItemType {
37003728
Invalid = "Invalid",
37013729
AzureResourceItem = "AzureResourceItem",
37023730
RecoveryServiceVaultItem = "RecoveryServiceVaultItem",
3703-
AzureWorkloadContainerAutoProtectionIntent = "AzureWorkloadContainerAutoProtectionIntent"
3731+
AzureWorkloadContainerAutoProtectionIntent = "AzureWorkloadContainerAutoProtectionIntent",
3732+
AzureWorkloadAutoProtectionIntent = "AzureWorkloadAutoProtectionIntent",
3733+
AzureWorkloadSQLAutoProtectionIntent = "AzureWorkloadSQLAutoProtectionIntent"
37043734
}
37053735

37063736
/**
@@ -3711,7 +3741,9 @@ export enum KnownProtectionIntentItemType {
37113741
* **Invalid** \
37123742
* **AzureResourceItem** \
37133743
* **RecoveryServiceVaultItem** \
3714-
* **AzureWorkloadContainerAutoProtectionIntent**
3744+
* **AzureWorkloadContainerAutoProtectionIntent** \
3745+
* **AzureWorkloadAutoProtectionIntent** \
3746+
* **AzureWorkloadSQLAutoProtectionIntent**
37153747
*/
37163748
export type ProtectionIntentItemType = string;
37173749

@@ -4001,7 +4033,10 @@ export enum KnownContainerType {
40014033
VMAppContainer = "VMAppContainer",
40024034
SqlagWorkLoadContainer = "SQLAGWorkLoadContainer",
40034035
StorageContainer = "StorageContainer",
4004-
GenericContainer = "GenericContainer"
4036+
GenericContainer = "GenericContainer",
4037+
MicrosoftClassicComputeVirtualMachines = "Microsoft.ClassicCompute/virtualMachines",
4038+
MicrosoftComputeVirtualMachines = "Microsoft.Compute/virtualMachines",
4039+
AzureWorkloadContainer = "AzureWorkloadContainer"
40054040
}
40064041

40074042
/**
@@ -4023,7 +4058,10 @@ export enum KnownContainerType {
40234058
* **VMAppContainer** \
40244059
* **SQLAGWorkLoadContainer** \
40254060
* **StorageContainer** \
4026-
* **GenericContainer**
4061+
* **GenericContainer** \
4062+
* **Microsoft.ClassicCompute\/virtualMachines** \
4063+
* **Microsoft.Compute\/virtualMachines** \
4064+
* **AzureWorkloadContainer**
40274065
*/
40284066
export type ContainerType = string;
40294067

@@ -4223,6 +4261,24 @@ export enum KnownHealthStatus {
42234261
*/
42244262
export type HealthStatus = string;
42254263

4264+
/** Known values of {@link IaasvmPolicyType} that the service accepts. */
4265+
export enum KnownIaasvmPolicyType {
4266+
Invalid = "Invalid",
4267+
V1 = "V1",
4268+
V2 = "V2"
4269+
}
4270+
4271+
/**
4272+
* Defines values for IaasvmPolicyType. \
4273+
* {@link KnownIaasvmPolicyType} can be used interchangeably with IaasvmPolicyType,
4274+
* this enum contains the known values that the service supports.
4275+
* ### Known values supported by the service
4276+
* **Invalid** \
4277+
* **V1** \
4278+
* **V2**
4279+
*/
4280+
export type IaasvmPolicyType = string;
4281+
42264282
/** Known values of {@link ProtectedItemState} that the service accepts. */
42274283
export enum KnownProtectedItemState {
42284284
Invalid = "Invalid",

0 commit comments

Comments
 (0)