Пример #1
0
 /// <summary>
 /// Gets the list of vault setting.
 /// </summary>
 /// <remarks>
 /// Gets the list of vault setting. This includes the Migration Hub connection
 /// settings.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <VaultSetting> > ListNextAsync(this IReplicationVaultSettingOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Gets the vault setting.
 /// </summary>
 /// <remarks>
 /// Gets the vault setting. This includes the Migration Hub connection
 /// settings.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultSettingName'>
 /// Vault setting name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VaultSetting> GetAsync(this IReplicationVaultSettingOperations operations, string vaultSettingName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(vaultSettingName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #3
0
 /// <summary>
 /// Gets the vault setting.
 /// </summary>
 /// <remarks>
 /// Gets the vault setting. This includes the Migration Hub connection
 /// settings.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultSettingName'>
 /// Vault setting name.
 /// </param>
 public static VaultSetting Get(this IReplicationVaultSettingOperations operations, string vaultSettingName)
 {
     return(operations.GetAsync(vaultSettingName).GetAwaiter().GetResult());
 }
Пример #4
0
 /// <summary>
 /// Gets the list of vault setting.
 /// </summary>
 /// <remarks>
 /// Gets the list of vault setting. This includes the Migration Hub connection
 /// settings.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <VaultSetting> List(this IReplicationVaultSettingOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// Gets the list of vault setting.
 /// </summary>
 /// <remarks>
 /// Gets the list of vault setting. This includes the Migration Hub connection
 /// settings.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <VaultSetting> ListNext(this IReplicationVaultSettingOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Пример #6
0
 /// <summary>
 /// Updates vault setting. A vault setting object is a singleton per vault and
 /// it is always present by default.
 /// </summary>
 /// <remarks>
 /// The operation to configure vault setting.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='vaultSettingName'>
 /// Vault setting name.
 /// </param>
 /// <param name='input'>
 /// Vault setting creation input.
 /// </param>
 public static VaultSetting BeginCreate(this IReplicationVaultSettingOperations operations, string vaultSettingName, VaultSettingCreationInput input)
 {
     return(operations.BeginCreateAsync(vaultSettingName, input).GetAwaiter().GetResult());
 }
Пример #7
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations = new Operations(this);
     ReplicationAlertSettings        = new ReplicationAlertSettingsOperations(this);
     ReplicationEligibilityResults   = new ReplicationEligibilityResultsOperations(this);
     ReplicationEvents               = new ReplicationEventsOperations(this);
     ReplicationFabrics              = new ReplicationFabricsOperations(this);
     ReplicationLogicalNetworks      = new ReplicationLogicalNetworksOperations(this);
     ReplicationNetworks             = new ReplicationNetworksOperations(this);
     ReplicationNetworkMappings      = new ReplicationNetworkMappingsOperations(this);
     ReplicationProtectionContainers = new ReplicationProtectionContainersOperations(this);
     ReplicationMigrationItems       = new ReplicationMigrationItemsOperations(this);
     MigrationRecoveryPoints         = new MigrationRecoveryPointsOperations(this);
     ReplicationProtectableItems     = new ReplicationProtectableItemsOperations(this);
     ReplicationProtectedItems       = new ReplicationProtectedItemsOperations(this);
     RecoveryPoints     = new RecoveryPointsOperations(this);
     TargetComputeSizes = new TargetComputeSizesOperations(this);
     ReplicationProtectionContainerMappings   = new ReplicationProtectionContainerMappingsOperations(this);
     ReplicationRecoveryServicesProviders     = new ReplicationRecoveryServicesProvidersOperations(this);
     ReplicationStorageClassifications        = new ReplicationStorageClassificationsOperations(this);
     ReplicationStorageClassificationMappings = new ReplicationStorageClassificationMappingsOperations(this);
     ReplicationvCenters          = new ReplicationvCentersOperations(this);
     ReplicationJobs              = new ReplicationJobsOperations(this);
     ReplicationPolicies          = new ReplicationPoliciesOperations(this);
     ReplicationProtectionIntents = new ReplicationProtectionIntentsOperations(this);
     ReplicationRecoveryPlans     = new ReplicationRecoveryPlansOperations(this);
     SupportedOperatingSystems    = new SupportedOperatingSystemsOperations(this);
     ReplicationVaultHealth       = new ReplicationVaultHealthOperations(this);
     ReplicationVaultSetting      = new ReplicationVaultSettingOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2021-08-01";
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ProtectionProfileCustomDetails>("resourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ProtectionProfileCustomDetails>("resourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <StorageAccountCustomDetails>("resourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <StorageAccountCustomDetails>("resourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryAvailabilitySetCustomDetails>("resourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryAvailabilitySetCustomDetails>("resourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryVirtualNetworkCustomDetails>("resourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryVirtualNetworkCustomDetails>("resourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryProximityPlacementGroupCustomDetails>("resourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryProximityPlacementGroupCustomDetails>("resourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryResourceGroupCustomDetails>("resourceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryResourceGroupCustomDetails>("resourceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AddDisksProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AddDisksProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ApplyRecoveryPointProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ApplyRecoveryPointProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TaskTypeDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TaskTypeDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <GroupTaskDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <GroupTaskDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ConfigurationSettings>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ConfigurationSettings>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FabricSpecificCreateNetworkMappingInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FabricSpecificCreateNetworkMappingInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <PolicyProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <PolicyProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReplicationProviderSpecificContainerCreationInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReplicationProviderSpecificContainerCreationInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReplicationProviderSpecificContainerMappingInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReplicationProviderSpecificContainerMappingInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CreateProtectionIntentProviderSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CreateProtectionIntentProviderSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryPlanActionDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryPlanActionDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryPlanProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryPlanProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DisableProtectionProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DisableProtectionProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EnableMigrationProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EnableMigrationProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EnableProtectionProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EnableProtectionProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EventProviderSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EventProviderSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EventSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EventSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FabricSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FabricSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FabricSpecificCreationInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FabricSpecificCreationInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FabricSpecificUpdateNetworkMappingInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FabricSpecificUpdateNetworkMappingInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <JobDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <JobDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrationProviderSpecificSettings>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrationProviderSpecificSettings>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <NetworkMappingFabricSpecificSettings>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <NetworkMappingFabricSpecificSettings>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <PlannedFailoverProviderSpecificFailoverInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <PlannedFailoverProviderSpecificFailoverInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <PolicyProviderSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <PolicyProviderSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ProtectionContainerMappingProviderSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ProtectionContainerMappingProviderSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ProviderSpecificRecoveryPointDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ProviderSpecificRecoveryPointDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryPlanProviderSpecificDetails>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryPlanProviderSpecificDetails>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RecoveryPlanProviderSpecificFailoverInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RecoveryPlanProviderSpecificFailoverInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <RemoveDisksProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <RemoveDisksProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReplicationProviderSpecificSettings>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReplicationProviderSpecificSettings>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReplicationProtectionIntentProviderSpecificSettings>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReplicationProtectionIntentProviderSpecificSettings>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReplicationProviderSpecificUpdateContainerMappingInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReplicationProviderSpecificUpdateContainerMappingInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ResyncProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ResyncProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReverseReplicationProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReverseReplicationProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <SwitchProtectionProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SwitchProtectionProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TestFailoverProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TestFailoverProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <TestMigrateProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <TestMigrateProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <UnplannedFailoverProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <UnplannedFailoverProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <UpdateApplianceForReplicationProtectedItemProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <UpdateApplianceForReplicationProtectedItemProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <UpdateMigrationItemProviderSpecificInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <UpdateMigrationItemProviderSpecificInput>("instanceType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <UpdateReplicationProtectedItemProviderInput>("instanceType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <UpdateReplicationProtectedItemProviderInput>("instanceType"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }