Skip to content

Commit 41de58f

Browse files
author
SDKAuto
committed
CodeGen from PR 12888 in Azure/azure-rest-api-specs
Merge 33ec9f03c312a7159627faedb7b16da86748210e into 5bb1209e89f8eaf6cce54b80f0df0c1e1f39759a
1 parent de864dd commit 41de58f

File tree

111 files changed

+10673
-3921
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+10673
-3921
lines changed

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-recoveryservicesbackup
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and get privateEndpointConnection as an example written in TypeScript.
18+
#### nodejs - client creation and get protectionIntent as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,19 +26,19 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { RecoveryServicesBackupClient, RecoveryServicesBackupModels, RecoveryServicesBackupMappers } from "@azure/arm-recoveryservicesbackup";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {
3736
const client = new RecoveryServicesBackupClient(creds, subscriptionId);
3837
const vaultName = "testvaultName";
3938
const resourceGroupName = "testresourceGroupName";
40-
const privateEndpointConnectionName = "testprivateEndpointConnectionName";
41-
client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => {
39+
const fabricName = "testfabricName";
40+
const intentObjectName = "testintentObjectName";
41+
client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => {
4242
console.log("The result is:");
4343
console.log(result);
4444
});
@@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
4747
});
4848
```
4949

50-
#### browser - Authentication, client creation and get privateEndpointConnection as an example written in JavaScript.
50+
#### browser - Authentication, client creation and get protectionIntent as an example written in JavaScript.
5151

5252
##### Install @azure/ms-rest-browserauth
5353

@@ -83,8 +83,9 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
8383
const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient(res.creds, subscriptionId);
8484
const vaultName = "testvaultName";
8585
const resourceGroupName = "testresourceGroupName";
86-
const privateEndpointConnectionName = "testprivateEndpointConnectionName";
87-
client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => {
86+
const fabricName = "testfabricName";
87+
const intentObjectName = "testintentObjectName";
88+
client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => {
8889
console.log("The result is:");
8990
console.log(result);
9091
}).catch((err) => {

sdk/recoveryservicesbackup/arm-recoveryservicesbackup/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
AADProperties,
12+
AADPropertiesResource,
13+
AzureBackupServerContainer,
14+
AzureBackupServerEngine,
15+
AzureFileShareBackupRequest,
16+
AzureFileShareProtectableItem,
17+
AzureFileshareProtectedItem,
18+
AzureFileshareProtectedItemExtendedInfo,
19+
AzureFileShareProtectionPolicy,
20+
AzureFileShareProvisionILRRequest,
21+
AzureFileShareRecoveryPoint,
22+
AzureFileShareRestoreRequest,
23+
AzureIaaSClassicComputeVMContainer,
24+
AzureIaaSClassicComputeVMProtectableItem,
25+
AzureIaaSClassicComputeVMProtectedItem,
26+
AzureIaaSComputeVMContainer,
27+
AzureIaaSComputeVMProtectableItem,
28+
AzureIaaSComputeVMProtectedItem,
29+
AzureIaaSVMErrorInfo,
30+
AzureIaaSVMHealthDetails,
31+
AzureIaaSVMJob,
32+
AzureIaaSVMJobExtendedInfo,
33+
AzureIaaSVMJobTaskDetails,
34+
AzureIaaSVMProtectedItem,
35+
AzureIaaSVMProtectedItemExtendedInfo,
36+
AzureIaaSVMProtectionPolicy,
37+
AzureRecoveryServiceVaultProtectionIntent,
38+
AzureResourceProtectionIntent,
39+
AzureSQLAGWorkloadContainerProtectionContainer,
40+
AzureSqlContainer,
41+
AzureSqlProtectedItem,
42+
AzureSqlProtectedItemExtendedInfo,
43+
AzureSqlProtectionPolicy,
44+
AzureStorageContainer,
45+
AzureStorageErrorInfo,
46+
AzureStorageJob,
47+
AzureStorageJobExtendedInfo,
48+
AzureStorageJobTaskDetails,
49+
AzureStorageProtectableContainer,
50+
AzureVMAppContainerProtectableContainer,
51+
AzureVMAppContainerProtectionContainer,
52+
AzureVmWorkloadItem,
53+
AzureVmWorkloadProtectableItem,
54+
AzureVmWorkloadProtectedItem,
55+
AzureVmWorkloadProtectedItemExtendedInfo,
56+
AzureVmWorkloadProtectionPolicy,
57+
AzureVmWorkloadSAPAseDatabaseProtectedItem,
58+
AzureVmWorkloadSAPAseDatabaseWorkloadItem,
59+
AzureVmWorkloadSAPAseSystemProtectableItem,
60+
AzureVmWorkloadSAPAseSystemWorkloadItem,
61+
AzureVmWorkloadSAPHanaDatabaseProtectableItem,
62+
AzureVmWorkloadSAPHanaDatabaseProtectedItem,
63+
AzureVmWorkloadSAPHanaDatabaseWorkloadItem,
64+
AzureVmWorkloadSAPHanaSystemProtectableItem,
65+
AzureVmWorkloadSAPHanaSystemWorkloadItem,
66+
AzureVmWorkloadSQLAvailabilityGroupProtectableItem,
67+
AzureVmWorkloadSQLDatabaseProtectableItem,
68+
AzureVmWorkloadSQLDatabaseProtectedItem,
69+
AzureVmWorkloadSQLDatabaseWorkloadItem,
70+
AzureVmWorkloadSQLInstanceProtectableItem,
71+
AzureVmWorkloadSQLInstanceWorkloadItem,
72+
AzureWorkloadAutoProtectionIntent,
73+
AzureWorkloadBackupRequest,
74+
AzureWorkloadContainer,
75+
AzureWorkloadContainerExtendedInfo,
76+
AzureWorkloadErrorInfo,
77+
AzureWorkloadJob,
78+
AzureWorkloadJobExtendedInfo,
79+
AzureWorkloadJobTaskDetails,
80+
AzureWorkloadPointInTimeRecoveryPoint,
81+
AzureWorkloadPointInTimeRestoreRequest,
82+
AzureWorkloadRecoveryPoint,
83+
AzureWorkloadRestoreRequest,
84+
AzureWorkloadSAPHanaPointInTimeRecoveryPoint,
85+
AzureWorkloadSAPHanaPointInTimeRestoreRequest,
86+
AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest,
87+
AzureWorkloadSAPHanaRecoveryPoint,
88+
AzureWorkloadSAPHanaRestoreRequest,
89+
AzureWorkloadSAPHanaRestoreWithRehydrateRequest,
90+
AzureWorkloadSQLAutoProtectionIntent,
91+
AzureWorkloadSQLPointInTimeRecoveryPoint,
92+
AzureWorkloadSQLPointInTimeRestoreRequest,
93+
AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest,
94+
AzureWorkloadSQLRecoveryPoint,
95+
AzureWorkloadSQLRecoveryPointExtendedInfo,
96+
AzureWorkloadSQLRestoreRequest,
97+
AzureWorkloadSQLRestoreWithRehydrateRequest,
98+
BackupEngineBase,
99+
BackupEngineBaseResource,
100+
BackupEngineExtendedInfo,
101+
BackupRequest,
102+
BackupRequestResource,
103+
BackupResourceConfig,
104+
BackupResourceConfigResource,
105+
BackupResourceEncryptionConfig,
106+
BackupResourceEncryptionConfigResource,
107+
BackupResourceVaultConfig,
108+
BackupResourceVaultConfigResource,
109+
BaseResource,
110+
BEKDetails,
111+
ContainerIdentityInfo,
112+
CrossRegionRestoreRequest,
113+
CrossRegionRestoreRequestResource,
114+
CrrAccessToken,
115+
CrrAccessTokenResource,
116+
CrrJobRequest,
117+
CrrJobRequestResource,
118+
DailyRetentionFormat,
119+
DailyRetentionSchedule,
120+
Day,
121+
DiskExclusionProperties,
122+
DiskInformation,
123+
DistributedNodesInfo,
124+
DpmBackupEngine,
125+
DpmContainer,
126+
DPMContainerExtendedInfo,
127+
DpmErrorInfo,
128+
DpmJob,
129+
DpmJobExtendedInfo,
130+
DpmJobTaskDetails,
131+
DPMProtectedItem,
132+
DPMProtectedItemExtendedInfo,
133+
EncryptionDetails,
134+
ErrorAdditionalInfo,
135+
ErrorDetail,
136+
ExtendedProperties,
137+
GenericContainer,
138+
GenericContainerExtendedInfo,
139+
GenericProtectedItem,
140+
GenericProtectionPolicy,
141+
GenericRecoveryPoint,
142+
IaasVMBackupRequest,
143+
IaaSVMContainer,
144+
IaasVMILRRegistrationRequest,
145+
IaaSVMProtectableItem,
146+
IaasVMRecoveryPoint,
147+
IaasVMRestoreRequest,
148+
IaasVMRestoreWithRehydrationRequest,
149+
ILRRequest,
150+
ILRRequestResource,
151+
InquiryInfo,
152+
InquiryValidation,
153+
InstantRPAdditionalDetails,
154+
Job,
155+
JobResource,
156+
KEKDetails,
157+
KeyAndSecretDetails,
158+
KPIResourceHealthDetails,
159+
LogSchedulePolicy,
160+
LongTermRetentionPolicy,
161+
LongTermSchedulePolicy,
162+
MabContainer,
163+
MabContainerExtendedInfo,
164+
MABContainerHealthDetails,
165+
MabErrorInfo,
166+
MabFileFolderProtectedItem,
167+
MabFileFolderProtectedItemExtendedInfo,
168+
MabJob,
169+
MabJobExtendedInfo,
170+
MabJobTaskDetails,
171+
MabProtectionPolicy,
172+
MonthlyRetentionSchedule,
173+
NewErrorResponse,
174+
NewErrorResponseError,
175+
PointInTimeRange,
176+
PreBackupValidation,
177+
PrivateEndpoint,
178+
PrivateEndpointConnection,
179+
PrivateEndpointConnectionResource,
180+
PrivateLinkServiceConnectionState,
181+
ProtectableContainer,
182+
ProtectableContainerResource,
183+
ProtectedItem,
184+
ProtectedItemResource,
185+
ProtectionContainer,
186+
ProtectionContainerResource,
187+
ProtectionIntent,
188+
ProtectionIntentResource,
189+
ProtectionPolicy,
190+
ProtectionPolicyResource,
191+
RecoveryPoint,
192+
RecoveryPointDiskConfiguration,
193+
RecoveryPointMoveReadinessInfo,
194+
RecoveryPointRehydrationInfo,
195+
RecoveryPointResource,
196+
RecoveryPointTierInformation,
197+
Resource,
198+
ResourceHealthDetails,
199+
RestoreFileSpecs,
200+
RestoreRequest,
201+
RestoreRequestResource,
202+
RetentionDuration,
203+
RetentionPolicy,
204+
SchedulePolicy,
205+
Settings,
206+
SimpleRetentionPolicy,
207+
SimpleSchedulePolicy,
208+
SQLDataDirectory,
209+
SQLDataDirectoryMapping,
210+
SubProtectionPolicy,
211+
TargetAFSRestoreInfo,
212+
TargetRestoreInfo,
213+
VaultJob,
214+
VaultJobErrorInfo,
215+
VaultJobExtendedInfo,
216+
WeeklyRetentionFormat,
217+
WeeklyRetentionSchedule,
218+
WorkloadCrrAccessToken,
219+
WorkloadInquiryDetails,
220+
WorkloadItem,
221+
WorkloadItemResource,
222+
WorkloadProtectableItem,
223+
WorkloadProtectableItemResource,
224+
YearlyRetentionSchedule
225+
} from "../models/mappers";
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
ErrorAdditionalInfo,
12+
NewErrorResponse,
13+
NewErrorResponseError,
14+
PrepareDataMoveResponse,
15+
VaultStorageConfigOperationResultResponse
16+
} from "../models/mappers";

0 commit comments

Comments
 (0)