Skip to content

Commit

Permalink
CodeGen from PR 13079 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
MFA MUA V1 swagger changes (Azure#13079)

* MFA MUA V1 swagger changes

* Copying json from 2021-02-01 to 2021-02-01-preview

* Moving these details under Preview folder

* Fixing Avocado errors

* updated version in example json files

Co-authored-by: Madhumanti Dey <[email protected]>
  • Loading branch information
SDKAuto and madhude committed Mar 15, 2021
1 parent 6df2614 commit 0ae82b5
Show file tree
Hide file tree
Showing 111 changed files with 10,673 additions and 3,921 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft
Copyright (c) 2021 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 11 additions & 10 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-recoveryservicesbackup

### How to use

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

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

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

##### Sample code

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
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { RecoveryServicesBackupClient, RecoveryServicesBackupModels, RecoveryServicesBackupMappers } from "@azure/arm-recoveryservicesbackup";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { RecoveryServicesBackupClient } = require("@azure/arm-recoveryservicesbackup");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new RecoveryServicesBackupClient(creds, subscriptionId);
const vaultName = "testvaultName";
const resourceGroupName = "testresourceGroupName";
const privateEndpointConnectionName = "testprivateEndpointConnectionName";
client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => {
const fabricName = "testfabricName";
const intentObjectName = "testintentObjectName";
client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

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

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

Expand Down Expand Up @@ -83,8 +83,9 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
const client = new Azure.ArmRecoveryservicesbackup.RecoveryServicesBackupClient(res.creds, subscriptionId);
const vaultName = "testvaultName";
const resourceGroupName = "testresourceGroupName";
const privateEndpointConnectionName = "testprivateEndpointConnectionName";
client.privateEndpointConnection.get(vaultName, resourceGroupName, privateEndpointConnectionName).then((result) => {
const fabricName = "testfabricName";
const intentObjectName = "testintentObjectName";
client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
AADProperties,
AADPropertiesResource,
AzureBackupServerContainer,
AzureBackupServerEngine,
AzureFileShareBackupRequest,
AzureFileShareProtectableItem,
AzureFileshareProtectedItem,
AzureFileshareProtectedItemExtendedInfo,
AzureFileShareProtectionPolicy,
AzureFileShareProvisionILRRequest,
AzureFileShareRecoveryPoint,
AzureFileShareRestoreRequest,
AzureIaaSClassicComputeVMContainer,
AzureIaaSClassicComputeVMProtectableItem,
AzureIaaSClassicComputeVMProtectedItem,
AzureIaaSComputeVMContainer,
AzureIaaSComputeVMProtectableItem,
AzureIaaSComputeVMProtectedItem,
AzureIaaSVMErrorInfo,
AzureIaaSVMHealthDetails,
AzureIaaSVMJob,
AzureIaaSVMJobExtendedInfo,
AzureIaaSVMJobTaskDetails,
AzureIaaSVMProtectedItem,
AzureIaaSVMProtectedItemExtendedInfo,
AzureIaaSVMProtectionPolicy,
AzureRecoveryServiceVaultProtectionIntent,
AzureResourceProtectionIntent,
AzureSQLAGWorkloadContainerProtectionContainer,
AzureSqlContainer,
AzureSqlProtectedItem,
AzureSqlProtectedItemExtendedInfo,
AzureSqlProtectionPolicy,
AzureStorageContainer,
AzureStorageErrorInfo,
AzureStorageJob,
AzureStorageJobExtendedInfo,
AzureStorageJobTaskDetails,
AzureStorageProtectableContainer,
AzureVMAppContainerProtectableContainer,
AzureVMAppContainerProtectionContainer,
AzureVmWorkloadItem,
AzureVmWorkloadProtectableItem,
AzureVmWorkloadProtectedItem,
AzureVmWorkloadProtectedItemExtendedInfo,
AzureVmWorkloadProtectionPolicy,
AzureVmWorkloadSAPAseDatabaseProtectedItem,
AzureVmWorkloadSAPAseDatabaseWorkloadItem,
AzureVmWorkloadSAPAseSystemProtectableItem,
AzureVmWorkloadSAPAseSystemWorkloadItem,
AzureVmWorkloadSAPHanaDatabaseProtectableItem,
AzureVmWorkloadSAPHanaDatabaseProtectedItem,
AzureVmWorkloadSAPHanaDatabaseWorkloadItem,
AzureVmWorkloadSAPHanaSystemProtectableItem,
AzureVmWorkloadSAPHanaSystemWorkloadItem,
AzureVmWorkloadSQLAvailabilityGroupProtectableItem,
AzureVmWorkloadSQLDatabaseProtectableItem,
AzureVmWorkloadSQLDatabaseProtectedItem,
AzureVmWorkloadSQLDatabaseWorkloadItem,
AzureVmWorkloadSQLInstanceProtectableItem,
AzureVmWorkloadSQLInstanceWorkloadItem,
AzureWorkloadAutoProtectionIntent,
AzureWorkloadBackupRequest,
AzureWorkloadContainer,
AzureWorkloadContainerExtendedInfo,
AzureWorkloadErrorInfo,
AzureWorkloadJob,
AzureWorkloadJobExtendedInfo,
AzureWorkloadJobTaskDetails,
AzureWorkloadPointInTimeRecoveryPoint,
AzureWorkloadPointInTimeRestoreRequest,
AzureWorkloadRecoveryPoint,
AzureWorkloadRestoreRequest,
AzureWorkloadSAPHanaPointInTimeRecoveryPoint,
AzureWorkloadSAPHanaPointInTimeRestoreRequest,
AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest,
AzureWorkloadSAPHanaRecoveryPoint,
AzureWorkloadSAPHanaRestoreRequest,
AzureWorkloadSAPHanaRestoreWithRehydrateRequest,
AzureWorkloadSQLAutoProtectionIntent,
AzureWorkloadSQLPointInTimeRecoveryPoint,
AzureWorkloadSQLPointInTimeRestoreRequest,
AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest,
AzureWorkloadSQLRecoveryPoint,
AzureWorkloadSQLRecoveryPointExtendedInfo,
AzureWorkloadSQLRestoreRequest,
AzureWorkloadSQLRestoreWithRehydrateRequest,
BackupEngineBase,
BackupEngineBaseResource,
BackupEngineExtendedInfo,
BackupRequest,
BackupRequestResource,
BackupResourceConfig,
BackupResourceConfigResource,
BackupResourceEncryptionConfig,
BackupResourceEncryptionConfigResource,
BackupResourceVaultConfig,
BackupResourceVaultConfigResource,
BaseResource,
BEKDetails,
ContainerIdentityInfo,
CrossRegionRestoreRequest,
CrossRegionRestoreRequestResource,
CrrAccessToken,
CrrAccessTokenResource,
CrrJobRequest,
CrrJobRequestResource,
DailyRetentionFormat,
DailyRetentionSchedule,
Day,
DiskExclusionProperties,
DiskInformation,
DistributedNodesInfo,
DpmBackupEngine,
DpmContainer,
DPMContainerExtendedInfo,
DpmErrorInfo,
DpmJob,
DpmJobExtendedInfo,
DpmJobTaskDetails,
DPMProtectedItem,
DPMProtectedItemExtendedInfo,
EncryptionDetails,
ErrorAdditionalInfo,
ErrorDetail,
ExtendedProperties,
GenericContainer,
GenericContainerExtendedInfo,
GenericProtectedItem,
GenericProtectionPolicy,
GenericRecoveryPoint,
IaasVMBackupRequest,
IaaSVMContainer,
IaasVMILRRegistrationRequest,
IaaSVMProtectableItem,
IaasVMRecoveryPoint,
IaasVMRestoreRequest,
IaasVMRestoreWithRehydrationRequest,
ILRRequest,
ILRRequestResource,
InquiryInfo,
InquiryValidation,
InstantRPAdditionalDetails,
Job,
JobResource,
KEKDetails,
KeyAndSecretDetails,
KPIResourceHealthDetails,
LogSchedulePolicy,
LongTermRetentionPolicy,
LongTermSchedulePolicy,
MabContainer,
MabContainerExtendedInfo,
MABContainerHealthDetails,
MabErrorInfo,
MabFileFolderProtectedItem,
MabFileFolderProtectedItemExtendedInfo,
MabJob,
MabJobExtendedInfo,
MabJobTaskDetails,
MabProtectionPolicy,
MonthlyRetentionSchedule,
NewErrorResponse,
NewErrorResponseError,
PointInTimeRange,
PreBackupValidation,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateEndpointConnectionResource,
PrivateLinkServiceConnectionState,
ProtectableContainer,
ProtectableContainerResource,
ProtectedItem,
ProtectedItemResource,
ProtectionContainer,
ProtectionContainerResource,
ProtectionIntent,
ProtectionIntentResource,
ProtectionPolicy,
ProtectionPolicyResource,
RecoveryPoint,
RecoveryPointDiskConfiguration,
RecoveryPointMoveReadinessInfo,
RecoveryPointRehydrationInfo,
RecoveryPointResource,
RecoveryPointTierInformation,
Resource,
ResourceHealthDetails,
RestoreFileSpecs,
RestoreRequest,
RestoreRequestResource,
RetentionDuration,
RetentionPolicy,
SchedulePolicy,
Settings,
SimpleRetentionPolicy,
SimpleSchedulePolicy,
SQLDataDirectory,
SQLDataDirectoryMapping,
SubProtectionPolicy,
TargetAFSRestoreInfo,
TargetRestoreInfo,
VaultJob,
VaultJobErrorInfo,
VaultJobExtendedInfo,
WeeklyRetentionFormat,
WeeklyRetentionSchedule,
WorkloadCrrAccessToken,
WorkloadInquiryDetails,
WorkloadItem,
WorkloadItemResource,
WorkloadProtectableItem,
WorkloadProtectableItemResource,
YearlyRetentionSchedule
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
ErrorAdditionalInfo,
NewErrorResponse,
NewErrorResponseError,
PrepareDataMoveResponse,
VaultStorageConfigOperationResultResponse
} from "../models/mappers";
Loading

0 comments on commit 0ae82b5

Please sign in to comment.